首页 > 其他 > 详细

git: not a git command

时间:2017-09-27 20:28:06      阅读:542      评论:0      收藏:0      [点我收藏+]

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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!