有谁能解释一下?哪个git似乎撒谎……
@H_404_2@$which git
/usr/local/bin/git
$/usr/local/bin/git --version
git version 1.7.9.2
$git --version
git version 1.7.10.4
解决方法
尝试使用以下命令从用于路径查找的bash哈希表中刷新git:
hash -d git
然后再试一次.
参考文章:
> How Linux or UNIX Understand which program to run – PART I.
> In bash,“which” gives an incorrect path – Python versions.