If you did a new or clean install of OS X version 10.3.x, the default user shell is bash. Bash is essentially an enhanced and GNU freeware version of the original Bourne shell, sh. Unless you happen to like bash, I recommend either switching to tcsh or zsh. If you did a new or clean install of OS X version 10.3.x, the default user shell is bash. Bash is essentially an enhanced and GNU freeware version of the original Bourne shell, sh. Unless you happen to like bash, I recommend either switching to tcsh or zsh.
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
Mac Os Mojave
Install homebrew if you don't already have it, then:$ brew install git
Xcode
Unexpected (mariothedog) mac os. Apple ships a binary package of Git with Xcode.
Binary installer
Tim Harper provides an installer for Git. The latest version is 2.31.0, which was released about 2 months ago, on 2021-03-16.
Bully Bash Mac Os 11
Building from Source
Bully Bash Mac Os X
If you prefer to build from source, you can find tarballs on kernel.org. The latest version is 2.31.1.
Installing git-gui
Bully Bash Mac Os 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