Mac OS X comes with a pre-installed version of Git, as you noticed. Xcode also has a certain version of Git. If you want to use the latest version of Git (which might be more recent than the one in Xcode), you have the option of installing a packaged version or going through something like Homebrew/Macports. – nwinkler Aug 11 '15 at 6:21.
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.
$ brew install git. 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 10 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.27.0. Jan 09, 2018 Mavericks builds have been published to address issues running git gui. Going forward, Snow Leopard and Mavericks builds will be published. Also, the Makefile has been fixed to enable 32-bit builds of the OS X keychain credential helper. Install Git on Mac OS X. There are several ways to install Git on a Mac. In fact, if you've installed XCode (or it's Command Line Tools), Git may already be installed. To find out, open a terminal and enter git -version. $ git -version git version 2.7.0 (Apple Git-66).
Homebrew
Install homebrew if you don't already have it, then:
$ brew install git
XCode
Git For Mac Os X 10.9 Mavericks
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 10 months ago, on 2019-09-03.
Mac Os X 10.11 Download Free
Building from Source
If you prefer to build from source, you can find tarballs on kernel.org. The latest version is 2.27.0.