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