GitHub Instructions
Git is a version control system for tracking code changes; GitHub is a cloud platform for hosting Git repositories.
Repository: A special folder that keeps track of all changes to your coding projects and lets you revert to previous versions if needed.
Git integration in VSCode: Built-in graphical interface.
Windows and Mac
- Download Git.
- Copy the URL from the Brightspace (BS) assignment link to Clone Git Repository.
- Find a location to store the file from GitHub.
- Finally, verify that your local file is pushed to GitHub.
Install Homebrew
If you do not have Homebrew already, open Terminal and run the following command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Add Homebrew to your path
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
Install Git using Homebrew
Once Homebrew is installed, run this command to install Git:
brew install git
Verify Git installation
After the installation is complete, check the Git version to verify it is installed:
git --version
Clone a repository
To clone a GitHub repository, use the following command:
git clone <repository-url>
Finally, verify that your local file is pushed to GitHub.
Mac OS & Windows: global configuration
Set your name and email in Git once, and it will label all changes with your identity.
git config --global user.name "Your Name"
git config --global user.email "your.email@example.com"
Verify your work in GitHub Classroom. Check your repository.