Git is a version control system that saves checkpoints of your work so you can always go back. Think of it like an undo history for your entire project.
Quick download: Mac: built-in (run xcode-select --install) · Windows: git-scm.com
Open Terminal (search for "Terminal" in Spotlight, or find it in Applications → Utilities) and run:
xcode-select --installA dialog will pop up asking if you want to install developer tools. Click Install and wait for it to finish (this may take a few minutes).
git --versionYou should see something like git version 2.x.x.
Tell Git who you are. Use the same email you'll use for your GitHub account:
git config --global user.name "Your Name"
git config --global user.email "your@email.com"Go to git-scm.com and click the Download for Windows button. This downloads a .exe file.
- Open the downloaded
.exefile - Click Next through the prompts — the defaults are fine for everything
- On the "Choosing the default editor" screen, you can leave it as Vim or change it to something friendlier (Notepad is fine — you won't need it much since Claude Code handles editing)
- On the "Adjusting your PATH" screen, make sure Git from the command line and also from 3rd-party software is selected (this is the default)
- Click Install, then Finish
Close and reopen Windows Terminal or PowerShell.
git --versionYou should see something like git version 2.x.x.
Tell Git who you are. Use the same email you'll use for your GitHub account:
git config --global user.name "Your Name"
git config --global user.email "your@email.com"| Problem | Fix |
|---|---|
git: command not found |
Restart your terminal. On Windows, make sure the PATH option was selected during install. |
| "xcode-select: error: command line tools are already installed" (Mac) | You already have Git — run git --version to confirm. |
| Git asks for name/email on every commit | Run the git config --global commands above to set them once. |