I just installed git on CentOS 6.8. When I run the command git
from a bash-shell, I get the following error message:
-bash: /usr/bin/git: Bestand of map bestaat niet
Sorry, Dutch installation. Meaning: "File or folder doesn't exist". Git is installed.
When I run /usr/local/bin/git --version
, I get the following output:
/usr/local/bin/git: /usr/local/lib/libz.so.1: no version information available (required by /usr/local/bin/git)
git version 2.5.3
(not sure if the libz message is a problem).
which git
points to /usr/local/bin/git
, so that's fine too. echo $PATH
returns /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
. I've looked for aliases and other clues in .bash_profile
, .bashrc
and /etc/bashrc
, but nothing...
How can I run git with just entering the command git
?
git
before while it was in/usr/bin
? If you runtype git
what do you see? – Eric Renouf Mar 24 '17 at 13:11yum
, but that was git version 1.7.type git
saysgit is gehasht (/usr/bin/git)
. Some hash cache? How do I clear it? – doekman Mar 24 '17 at 13:17git
here) or the entire cache – Eric Renouf Mar 24 '17 at 13:19