How to update git on macOS

Words
42
Reading
1 min
Listen
Play
9y

Check installed version:

git --version
git version 1.7.12.4 (Apple Git-37)

Install git with Homebrew:

brew install git

Add this line to your ~/.bash_profile:

export PATH="/usr/local/bin:$PATH"

Save change and apply this by:

source .bash_profile

Check your version again:

git 鈥攙ersion
git version 2.11.1

How to update git on macOS | Ecency