Thanks for the response. This helped a lot :)

My $PATH was looking like:
/usr/local/git/bin/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin:/opt/local/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/mysql/bin:/Users/robert/.rvm/bin:/usr/local/git/bin/:/usr/local/git/bin/

I'checked some files like : .bash_profile/.profile/.bashrc there were some 
export $PATH declarations.

/usr/bin/git --version
=> git version 1.7.5.4

/usr/local/git/bin/git --version
=> git version 1.7.10.1

First I removed the export PATH declarations. They were messing things up. 
It is kind of strange that the uninstaller of v1.7.5.4 is locating git at 
/usr/local/git and it is installed here at /usr/bin/git. I always used the 
official installer. 

Then I read somewhere else that xcode also installs git (think this should 
be the /usr/bin/git). So I'm not planning to remove this one.

So first I removed all my export PATH declarations from 
.bash_profile/.profile/.bashrc. This makes my path looks like:
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin:/opt/local/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/mysql/bin:/Users/robert/.rvm/bin

Somewhat shorter. When I did 'which git' it gave me /usr/bin/git. This 
isn't the version I want. So I went back and changed my PATH to
/usr/local/git/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin:/opt/local/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/mysql/bin:/Users/robert/.rvm/bin
by adding this line:
export PATH=/usr/local/git/bin:$PATH
to .bash_profile

First open a new terminal window to test "git --version" or "which git" or 
if you want to test those commandos in the same terminal type in first "source 
.bash_profile" to enable your changed in the .bash_profile file

/usr/local/git/bin (the 1.7.10.1 version) will be found first ('which git' 
resulted in /usr/local/git/bin/git)



Op woensdag 9 mei 2012 11:54:59 UTC+2 schreef Robert Cabri het volgende:
>
> Tried to update from version 1.7.5.4 to 1.7.9.4 and to 1.7.10.1. The 
> installer says it's installed but when requesting the version number of git 
> with CLI git tells me the version is still 1.7.5.4.
>
> Does anybody have a fix for this?
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/git-users/-/0ge-kNLgX1oJ.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.

Reply via email to