I just installed git 1.6.0 from source, but strange thing now happening to me:
debian:~/git# git version
git version 1.5.6.5
debian:~/git# which git
/usr/local/bin/git
debian:~/git# /usr/local/bin/git version
git version 1.6.0
How can I make 1.6.0 binary default? System is Debian Lenny. Git installed with simple ./configure && make && make all
.
Perhaps your shell is still caching the old mapping. If you use bash, see the builtin 'hash' command, specifically 'hash -r' in order to make it forget old entries, for zsh it's IIRC 'rehash'.
I suggest you uninstall the git package provided by your distribution.
But usually you should prefer the distribution package over installing yourself from source, because it will automatically handle upgrades and removal.
I always make packages when i build from source, i never just "make install". This way i won't end up with manually installed cruft clogging the system.
Edit .bashrc or .profile to specify /usr/local/bin early in PATH.