GitHub
Review GitHub concepts 2-minGit source control
VSCodeYou will want to create a personal Github Pages blog for this class. This is a place where you can code, complete the hacks, and record what you have learned.
Run the following commands to configure user git connection to GitHub. This is required, before pushing code to GitHub.
```bash
# Setup GitHub ID
git config --global user.email <your email>
git config --global user.name <your github id>
# Verify Setup
git config --list
```
Use Template to create student repository
Once your repository is created, click on the green “Code” button and copy the HTTPS link provided.
In Terminal, to your vscode directory (cd ~/vscode
). Then clone the repository with git clone <paste from previous step>
.
Open your repository in VS Code with code <repository name>
. Cloud Terminal requires you to open after lanuching VSCode.
The VSCode saved files are only stored on your computer locally until you commit and then sync the changes.
This creates a version of your files in you local git database. Often developers commit several times before they sync in VSCode or push from command line. This allows lots of small changes that can be easily reviewed and rolled back.
Click on the button that supports “Source Control” in VS Code’s left sidebar
Click on the plus sign to stage your changes
Enter a message for your commit in the message box.
Click the “Commit button”
Sync will push files to GitHub and create an Action for GitHub Pages updates, site will update if code is without errors.
Click the Menu button and then click “Push”.
Watch Actions until done, open action link and review changes on github.io