Install Git
1. Download it
- Windows — git-scm.com/download/win. Keep the defaults. Git Bash is fine.
- macOS — install Xcode Command Line Tools (
xcode-select --install) or Git for macOS. - Linux — use the distro package, for example
sudo apt install git.
GitHub’s Git handbook covers the same steps with screenshots.
2. Check it
Open a terminal and run:
git --version
You should see a version number. If the command is not found, close the terminal, reopen it, and try again.
3. Set your name and email
Git stores these on every commit. Use the same email as your GitHub account.
git config --global user.name "Your Name"
git config --global user.email "you@example.com"