`git pull` 命令没有任何反应。

3
自从昨天以来,我的专业电脑遇到了一个大问题:我无法使用git pull命令。这真的很奇怪,因为其他所有的git命令都可以正常工作。
我尝试过以下方法:
  • 重新安装Github for Windows、Git Shell等软件...
  • 查看是否能够访问远程服务器(git push可以工作,我可以ping远程服务器)。
GIT_TRACE=1 git pull返回结果如下:
$ GIT_TRACE=1 git pull
trace: exec: 'git-pull'
trace: run_command: 'git-pull'

另一件奇怪的事情是:现在在一个Git存储库上,我在Git Shell中没有看到当前存储库:
MY_USER@MY_COMPUTER /c/Github/myRepo 
$

通常,我的CLI长这样:

MY_USER@MY_COMPUTER /c/Github/myRepo <develop>
$

我认为问题是软件方面的,因为出现问题之前我刚刚更新了“entreprise”套餐。 我的配置:Windows 8.1专业版,使用Github for Windows并使用Git shell.
如果有人有修复此问题的想法或如何调试此命令,请告诉我。 编辑 git remote-v 返回:
$ git remote -v
origin  https://MY_USER@git-SI.enterprise.fr/PROJECT/windows/PROJECT_repo.git (fetch)
origin  https://MY_USER@git-SI.enterprise.fr/PROJECT/windows/PROJECT_repo.git (push)

git status 的返回结果为:

$ git status
# On branch develop
# Your branch is ahead of 'origin/develop' by 1 commit.
#   (use "git push" to publish your local commits)
#
nothing to commit, working directory clean

@VonC 我在帖子中回答了你。 - Joffrey Kern
你是否正在使用最新的Git for Windows 1.9.4?git fetch是否正常工作? - VonC
是的,git fetch 可以工作。 - Joffrey Kern
如果“您的分支比'origin/develop'超前1个提交”,那么就没有需要拉取的内容,只需要推送。您尝试过推送吗? - VonC
让我们在聊天中继续这个讨论 - Joffrey Kern
显示剩余3条评论
1个回答

3
问题出在我们企业的杀毒软件更新了:它阻止了所有bash命令(例如我的提示符命令中的lsclear)。

2
有趣的反馈。+1 - VonC
感谢您的帮助,@VonC! - Joffrey Kern
没问题。我在聊天会话中没有考虑到防病毒软件。 - VonC
下一次,你会想到它的。 - Joffrey Kern

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接