【问题标题】:Nothing happens with a `git pull``git pull` 没有任何反应
【发布时间】:2015-01-23 03:10:40
【问题描述】:

从昨天开始,我的专业电脑出现了一个大问题:我无法使用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>
$

我认为问题出在软件上,因为在问题出现之前我获得了“企业”软件包更新。 我的配置:Windows 8.1 Professional 和 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 statusreturns:

$ 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

【问题讨论】:

  • git remote -vgit status/c/Github/myRepo 中返回什么?
  • @VonC 我在帖子中回答你。
  • 你使用的是最新的 Git for windows 1.9.4 吗? git fetch 工作吗?
  • 是的,git fetch 有效
  • 如果是“your branch is ahead of 'origin/develop' by 1 commit”,就没有什么可以拉的,只有推。你试过推吗?

标签: git shell git-pull


【解决方案1】:

问题是我们企业防病毒软件的更新:它阻止了所有 bash 命令(如我的提示命令中的lsclear)。

【讨论】:

  • 有趣的反馈。 +1
  • 感谢您的帮助@VonC!
  • 没问题。在我们的聊天会话中,我没有考虑过防病毒软件。
  • 下一次,你会想到的。
猜你喜欢
  • 1970-01-01
  • 2020-10-24
  • 2020-03-17
  • 1970-01-01
  • 2023-02-02
  • 2014-09-09
  • 1970-01-01
相关资源
最近更新 更多