Git Pull无法更新来自远程的最后一次提交

时间:2018-12-06 00:29:01

标签: git git-pull

在远程主服务器上,仓库在我的本地提交之前有3个提交。我正在尝试提取最新的提交。

$git checkout master
$git pull origin master
Current branch master is up to date.

然后我尝试提取

$git fetch origin master:master
fatal: Refusing to fetch into current branch refs/heads/master of non-bare repository
fatal: the remote end hung up unexpectedly

我也尝试重新克隆此存储库,但是我仍然丢失了最后3次提交。如果您需要提供更多信息,请告诉我。感谢您的帮助。

1 个答案:

答案 0 :(得分:-1)

您可以粘贴“ git status”,“ git log --graph --decorate --all”的输出作为附加输入。

相关问题