Git

Download for macOS

There are several options for installing Git on macOS. Note that any non-source distributions are provided by third parties, and may not be up to date with the latest source release.

Homebrew

Install homebrew if you don't already have it, then:
$ brew install git

XCode

Apple ships a binary package of Git with XCode.

Binary installer

Tim Harper provides an installer for Git. The latest version is 2.23.0, which was released 9 months ago, on 2019-09-03.

Building from Source

If you prefer to build from source, you can find tarballs on kernel.org. The latest version is 2.26.2.