Thursday, October 30, 2014

Git points to wrong bin

Search for installed git paths.
sudo find / -name git
List of gits in my machine.
/Applications/Xcode.app/Contents/Developer/usr/bin/git  -> git version 1.9.3 (Apple Git-50)
/opt/local/bin/git                                      -> git version 1.7.9.2
/usr/bin/git                                            -> git version 1.9.3 (Apple Git-50) 
/usr/local/git/bin/git                                  -> git version 2.0.1
Places where to change $PATH
vi ~/.bash_profile
vi ~/.profile
After execution of this line default version for git will be 2.0.1
export PATH=/usr/local/git/bin:$PATH

No comments:

Post a Comment