15.8.13

Upgrading git on Mac OS X

1) First install it with google code: 

https://code.google.com/p/git-osx-installer/

2) But wait ! When you install git through google code - its not written to /usr/bin, so running "git" will still use the OLD version (which is in /usr/bin/git).  

$ /usr/bin/git version
git version 1.7.7.5 (Apple Git-26)

$ /usr/local/git/bin/git version

git version 1.8.3.2

So, to fix it just cp the new version over to /usr/bin/.. 

$ sudo cp /usr/local/git/bin/git /usr/bin/git

:) that was easy :) 

No comments:

Post a Comment