簡體   English   中英

Git pull 不更新遠程的最后一次提交

[英]Git pull not updating the last commit from remote

在遠程主機上,repo 在我的本地提交之前有 3 個提交。 我正在嘗試提取最新的提交。

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

然后我試過 fetch

$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

我也嘗試重新克隆這個 repo,但我仍然丟失了最后 3 次提交。 如果您需要提供更多信息,請告訴我。 感謝您的幫助。

如果你不是
$ git拉
類型
$ git pull [remote] [local-branch> </code]如果你不是
$ git拉

$ git pull [remote] [local-branch> </code]

您可以粘貼 "git status" 、 "git log --graph --decorate --all" 的輸出作為附加輸入。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM