I had been working on 2 features of a project, on the master branch.
Let's call them Feature #1 and Feature #2. 
The Feature #2 commit is the most recent.
None of the commits was pushed to remote until it was time to push the Feature #2 commit. 
But the attempt to push the latest commit with
git push origin ab34567dff766d0b5bd8698faffcfacf937e06d4:master
would push the previous commit too, unless I reordered them.
So I reordered the commits (using git rebase -i HEAD~2). 
I have git pulled and git status gives the message:
Your branch is ahead of 'origin/master' by 2 commits.
git push origin ab34567dff766d0b5bd8698faffcfacf937e06d4:master is rejected:
Updates were rejected because the tip of your current branch is behind
What shall I do? What is the source of this problem?
 
    