【发布时间】: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 可能会说“已经是最新的”,但没有显示任何内容。
-
愚蠢的问题:你试过重启你的机器吗?