码迷,mamicode.com
首页 > 其他好文 > 详细

git: not a git command

时间:2017-09-27 20:45:03      阅读:377      评论:0      收藏:0      [点我收藏+]

标签:git

在一台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

原文地址:http://jupiterbee.blog.51cto.com/3364619/1969206

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!