Install Git
Install Git and confirm it's ready to use from your terminal.
Requirements
- Terminal access
Choose your platform
Check whether Git is already installed
$ git --versionNote
macOS often ships with an older Git via Xcode Command Line Tools. If a version prints, you likely already have what you need for basic use — you can still update it with Step 2.
Install with Homebrew
Homebrew keeps Git up to date more reliably than Apple's bundled version.
$ brew install gitTip
Don't have Homebrew yet? Follow our Install Homebrew guide first.
Verify the installation
$ git --versionExpected output
git version 2.4x.x
Success
Git is installed and on your PATH.
Troubleshooting
Your shell can't find a `git` executable on the PATH — usually because the installation didn't complete, or a new terminal window needs to be opened to pick up PATH changes.
Close and reopen your terminal, then check again:
$ git --versionIf it's still missing, re-run the install steps above for your platform.