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?