火冰狐 发表于 2018-9-16 13:09:07

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

页: [1]
查看完整版本: git: not a git command