我刚刚做了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'。 –