git: not a git command
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了git: not a git command相关的知识,希望对你有一定的参考价值。
在一台linux机器上打git命令,显示:
git: ‘pull‘ is not a git command. See ‘git --help‘. Did you mean this? shell
莫名的错误,再敲
$ git --exec-path $ /usr/local/linux/git/libexec/git-core
发现这个路径不存在,找到git-core正确的安装位置,重新设置环境变量即可
$ export GIT_EXEC_PATH=$RIGHT_PATH
或者执行的时候带参数
$ git --exec-path=$RIGHT_PATH
以上是关于git: not a git command的主要内容,如果未能解决你的问题,请参考以下文章
错误记录Git 使用报错 ( git: ‘switch‘ is not a git command. See ‘git --help‘. )
错误记录Git 使用报错 ( git: ‘switch‘ is not a git command. See ‘git --help‘. )
gitgit: ‘interpret-trailers’ is not a git command. See ‘git --help’
gitgit: ‘interpret-trailers’ is not a git command. See ‘git --help’
gitgit: ‘interpret-trailers’ is not a git command. See ‘git --help’
git:Git fetch和git pull的区别, 解决Git报错:error: You have not concluded your merge (MERGE_HEAD exists).(代码片