git: 'pull' 不是 git 命令。见'git --help'

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/13473145/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 07:47:02  来源:igfitidea点击:

git: 'pull' is not a git command. See 'git --help'

macosgit

提问by James Raitsev

Possible Duplicate:
“git pull” broken

可能的重复:
“git pull”坏了

Using git version 1.7.5.4on my MAC

git version 1.7.5.4我的MAC

When trying to pullfrom remote, i am getting the

当试图pull从远程,我得到

git: 'pull' is not a git command. See 'git --help'.error.

git: 'pull' is not a git command. See 'git --help'.错误。

This used to work. Something changed on my system, not sure what.

这曾经奏效。我的系统发生了一些变化,不确定是什么。

How can this be resolved please? What might be the problem here?

请问这个怎么解决?这里可能有什么问题?

回答by Rawkode

Can you confirm that git-core is in the correct place?

你能确认 git-core 在正确的地方吗?

iMac:~ david$ git --exec-path
/usr/local/git/libexec/git-core
iMac:~ david$ ls /usr/local/git/libexec/
git-core
iMac:~ david$