I installed git via apt-get, but found that the version was hopelessly outdated, so I then installed git from source. The end result is rather puzzling:
$ git --version
git version 1.7.0.4
$ which git
/usr/local/bin/git
$ /usr/local/bin/git --version
git version 1.7.6
It appears that which is lying to me...which seems unlikely. What is actually going on here, and how can I get a bare call to git to run the correct version?
whereis git? and less probable, what showstype git? – hmontoliu Aug 5 '11 at 18:24apt-get? – quanta Aug 5 '11 at 18:25whereis git:git: /usr/bin/git /usr/local/bin/git /usr/share/man/man1/git.1.gz.type git:git is hashed (/usr/bin/git). What does "git is hashed" mean? – Josh Bleecher Snyder Aug 5 '11 at 18:30