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.
There are several ways to install Git on a Mac. The easiest is probably to install the Xcode Command Line Tools. On Mavericks (10.9) or above you can do this simply by trying to run git. A free Git client for Windows and Mac Sourcetree simplifies how you interact with your Git repositories so you can focus on coding. Visualize and manage your repositories through Sourcetree's simple Git GUI. Then you'll see this window. Simply choose Git from the left nav and then install the ksdiff command-line tool and then make Kaleidoscope Git's default diff and merge tool. Finally, once you have a merge conflict in Git, simply go to the command line and execute git mergetool. Now the conflict is easy to read.
Homebrew
Install homebrew if you don't already have it, then:
$ brew install git
![Git For Mac Gui Git For Mac Gui](/uploads/1/1/8/6/118682229/471106446.png)
Xcode
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 3 months ago, on 2020-07-22.
Building from Source
If you prefer to build from source, you can find tarballs on kernel.org. The latest version is 2.29.2.
Older releases are available and the Git source repository is on GitHub.
Latest source Release
2.29.2 Release Notes (2020-10-29)Git Desktop Mac
GUI Clients
Git comes with built-in GUI tools (git-gui, gitk), but there are several third-party tools for users looking for a platform-specific experience.
Logos
Various Git logos in PNG (bitmap) and EPS (vector) formats are available for use in online and print projects.
Git via Git
If you already have Git installed, you can get the latest development version via Git itself:
Git Gui Mac Best
git clone https://github.com/git/git
Git Diff Mac Gui
You can also always browse the current contents of the git repository using the web interface.