Step 1: Installing the command line tools. Open a terminal and enter the following line, you’ll then be shown a pop up prompt. $ xcode-select -install. Click install when the prompt pops up. Command line tools install prompt. After that you’ll be shown a license which you’ll have to agree to in order to install. My catalina version is 10.15.2 (19C57) Home-brew version is shawnstationdeMacBook-Pro: shawnstation$ brew -version Homebrew 1.6.9 Homebrew/homebrew-core (git revision fab7d; last commit 2018-07-07).
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
Homebrew For Mac Catalina
Xcode
Apple ships a binary package of Git with Xcode.
Binary installer
Tim Harper provides an installer for Git. The latest version is 2.32.0, which was released 20 days ago, on 2021-07-21.
Building from Source
Is Homebrew Good For Mac
If you prefer to build from source, you can find tarballs on kernel.org. The latest version is 2.32.0.
Installing git-gui
Instalar Homebrew Mac Catalina
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