I just bought a new Mac with OS X Lion and I checked in the Terminal what version of git is installed by default. I got the answer
git --version
> git ver
I recently upgraded the Git on my OS X machine to the latest also. I didn't use the same .dmg
you used, but when I installed it the binaries were placed in /usr/local/bin
. Now, the way my PATH
was arranged, the directory /usr/bin
appears before /usr/local/bin
. So what I did was:
cd /usr/bin
mkdir git.ORIG
mv git* git.ORIG/
This moves the several original programs named git*
to a new subdirectory that keeps them out of the way. After that, which git
shows that the one in /usr/local/bin
is found.
Modify the above procedure as necessary to fit wherever you installed the new binaries.