Tuesday, June 10, 2014

Install git 1.9.2 on osX and reset $PATH

Install git 1.9.2, and it is in /usr/local/git/bin

The older 1.8.x version are in /usr/bin and /usr/local/bin.  The first is Apple default git. The second is installed by GitHub. 

$nano -w .bash_profile
.....
# use 1.9.2 git in shell
export PATH="/usr/local/git/bin:$PATH"


byte:~ hqin$ source .bash_profile
byte:~ hqin$ which git
/usr/local/git/bin/git
byte:~ hqin$ git --version
git version 1.9.2

No comments:

Post a Comment