我剛剛做了git remote remove origin
並重新添加相同的遠程原點。但是,只有在那之後我才意識到,我自己變成了一個情況,我不知道怎麼追,因爲這樣做git remote remove origin
之前,我有:git遠程刪除後,我的本地提交狀態改變
$ git status
On branch master
Your branch is ahead of 'origin/master' by 5 commits.
(use "git push" to publish your local commits)
nothing to commit, working tree clean
但現在:
$ git status
On branch master
nothing to commit, working tree clean
我現在應該怎麼做?我怎樣才能讓git
知道我的分支在5次提交之前領先於'origin/master'?謝謝。
嘗試'git fetch origin'。 –