Git

How to Upgrade Git

Posted by Lawrence Sun on 2014-09-21

When I intended to install ImageMagick via homebrew, and found some issues by runing brew doctor. One was telling me that the git was out of date.

When installing Git for Mac OS via XCode, it points Git to usr/bin/git.
run which git to check out the directory.

If we want to keep git up to date, we could install/upgrade git using homebrew.

Add the line in ~/.bash_profile

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

Then run brew install git and brew update git.