Install Git

Install Git and confirm it's ready to use from your terminal.

beginner5 minmacos · windows · linuxUpdated August 2026
#git#installation#developer-setup

Requirements

  • Terminal access

Choose your platform

0/3 steps · 0%
01

Check whether Git is already installed

bash
$ git --version

Note

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.

02

Install with Homebrew

Homebrew keeps Git up to date more reliably than Apple's bundled version.

bash
$ brew install git

Tip

Don't have Homebrew yet? Follow our Install Homebrew guide first.

03

Verify the installation

bash
$ git --version

Expected 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:

bash
$ git --version

If it's still missing, re-run the install steps above for your platform.