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.
Sublime Text is one of the best code editor apps available for Mac. With that in mind, it makes sense that Sublime Merge from the same developer is a fantastic Git client. If you’ve used Sublime Text before, the user interface of Sublime Merge will instantly be familiar. Sublime Merge is a Git client for Mac, Windows, and Linux created by the same developer behind the much-loved Sublime Text source code editor. It includes all the qualities Sublime text users happily swear by and more including a speedy performance, an integrated merge tool, a powerful search tool, advanced difference checker, etc.
Homebrew
Install homebrew if you don't already have it, then:$ brew install git
Xcode
Git Editor For Mac Windows 10
Apple ships a binary package of Git with Xcode.
Binary installer
Tim Harper provides an installer for Git. The latest version is 2.27.0, which was released 5 months ago, on 2020-07-22.
Building from Source
Git For Mac
If you prefer to build from source, you can find tarballs on kernel.org. The latest version is 2.29.2.
Donate
Installing git-gui
Git - Git Configuration
If you would like to install git-gui and gitk, git's commit GUI and interactive history browser, you can do so using homebrew$ brew install git-gui