This question already has an answer here:
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
/etc/bashrc, but nothing...
How can I run git with just entering the command