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.
Install homebrew if you don't already have it, then:
$ brew install git
Apple ships a binary package of Git with Xcode.