How to update git on macOS

in #programming7 years ago

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 —version
git version 2.11.1

Coin Marketplace

STEEM 0.21
TRX 0.20
JST 0.034
BTC 91785.29
ETH 3117.82
USDT 1.00
SBD 3.00