Please follow these steps:
Open the terminal
Type: brew install git
Hit enter
Note: Response code.
==> Downloading https://homebrew.bintray.com/bottles/git-2.11.0.el_capitan.bottl
######################################################################## 100.0%
==> Pouring git-2.11.0.el_capitan.bottle.tar.gz
==> Caveats
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
zsh completion has been installed to:
/usr/local/share/zsh/site-functions
zsh functions have been installed to:
/usr/local/share/zsh/site-functions
Emacs Lisp files have been installed to:
/usr/local/share/emacs/site-lisp/git
==> Summary
🍺 /usr/local/Cellar/git/2.11.0: 1,452 files, 32.3M
Anils-MBP:~ anilmainali$
Verify:
Type git —version
Note: Response code.
Anils-MBP:~ anilmainali$ git --version
git version 2.11.0
Anils-MBP:~ anilmainali$
Congratulations! You have successfully installed Git on your Mac.