I’m sorry if the title isn’t clear, but this is a weird problem.
I git checkout
to my \"stage\" branch and git pull
to get my partner’s latest
I got the similar problem now after the following had happened:
My simple solution was to undo these three local commits, running the following command for each commit:
git reset --soft HEAD~1
Then git status tells I am behind origin with two commits, and I can pull those commits as usual.
Try this command:
git log origin/stage..stage
This show you what you are ahead of the remote. Do a git rebase origin/stage
/ git push
as appropriate.
If it doesn't help, see this question : 'git pull origin mybranch' leaves local mybranch N commits ahead of origin. Why?