我切换到 master,它说我领先 40 次提交:
$ git checkout master
Switched to branch 'master'
Your branch is ahead of 'origin/master' by 40 commits.
但是当我然后拉它说我是最新的:
$ git pull origin master
From https://github.com/dmcouncil/dmWorkflow
* branch master -> FETCH_HEAD
Already up-to-date.
但是我可以解决这个问题(删除40 commits
味精):
Michaels-MacBook-Pro-2:dmWorkflow durrantm$ git push origin master
Everything up-to-date
现在' 40 commits
'消息消失了:
$ git status
# On branch mdd_play_settings_and_topics_reports
nothing to commit (working directory clean)
为什么我必须做额外的推动(似乎什么都没有)才能同步?
有没有更好的方法可以解决这个问题?