Git is a version control system for tracking code changes; GitHub is a cloud platform for hosting Git repository.
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
_____________________________________________________________________________
For Windows: Download Git -> copy URL from BS Assignment link to Clone Git Repository-> find a location to store the file from the GitHub -> Finally, verify that your local file is pushed to GitHub.
_____________________________________________________________________________
For Mac: Install Homebrew (if you don't have it 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's installed: git --version
To clone a GitHub repository, use the following command: git clone <repository-url>
Finally, verify that your local file is pushed to GitHub.
_____________________________________________________________________________
For Mac OS & Windows:
Global Config: 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 the GitHub Classroom. Check your repository.