【问题标题】:git pull not working even no errors occurred即使没有发生错误,git pull 也不起作用
【发布时间】:2023-03-10 23:40:02
【问题描述】:

我在使用 git pull 命令时遇到了麻烦。

我调用了'git pull',但什么也没发生,甚至没有发生错误! 它以前工作得很好,今天不工作。我该怎么办?

$ GIT_TRACE=1 git pull

16:07:11.030735 git.c:344               trace: built-in: git pull

16:07:11.031160 run-command.c:640       trace: run_command: git fetch --update-head-ok

16:07:11.032437 git.c:344               trace: built-in: git fetch --update-head-ok

16:07:11.032805 run-command.c:640       trace: run_command: git-remote-https origin https://github.com/my/repository.git

[yjpark@uws64-211 www]$

谢谢。

【问题讨论】:

  • 如果您将原始存储库设置为https://github.com/my/repository.git,那么问题是它不存在。如果你运行git remote show origin,你会得到什么?
  • @batzilis 我已经手动改地址写问题了。当然,设置是正确的,前几天'git pull'运行良好。
  • 您的命令是否因为没有要拉取的更改而没有做任何事情?
  • @entpnerd 不,我已经从另一台计算机推送了一个提交。如果是这种情况,git 可能会说“已经是最新的”,但没有显示任何内容。
  • 愚蠢的问题:你试过重启你的机器吗?

标签: git github


【解决方案1】:

这是服务器上的git版本问题。

服务器管理员降级了 git 的版本,现在可以正常使用了。 :)

【讨论】:

    猜你喜欢
    • 2013-08-29
    • 2021-07-08
    • 1970-01-01
    • 1970-01-01
    • 2012-12-26
    • 2021-12-23
    • 1970-01-01
    • 1970-01-01
    • 2016-08-15
    相关资源
    最近更新 更多