I manually installed git 1.6 a year or two ago. I noticed today that the 1.7 version is available in yum, and installed it (package git-all) I now get the following output:
[root@ovz5197 ~]# git --version
bash: /usr/local/bin/git: No such file or directory
[root@ovz5197 ~]# which git
/usr/bin/git
[root@ovz5197 ~]# /usr/bin/git --version
git version 1.7.4.1
[root@ovz5197 ~]#
Any idea why the output of which
seems to contradict the first line above?
$PATH
variable look like, but aswhich git
is finding it, it should be ok. However, the reason might be in your$PATH
? – Torbjörn Sep 15 '11 at 15:26ls -l /usr/local/bin/git
show? Andfile /usr/local/bin/git
? – Gilles 'SO- stop being evil' Sep 16 '11 at 00:04