So I rebased a branch against the master. However,
git push --set-upstream origin MyBranch
I get
! [rejected] MyBranch -> MyBranch (non-fast-forward)
error: failed to push some refs to 'https://mygit@bitbucket.org/mygit/myproject.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
So, ok. Rebased again. Completed without issue. Then
git pull
* branch HEAD -> FETCH_HEAD
Ok, Already up to date
git push --set-upstream origin MyBranch
Again, the error. I could force push, but I don't like the risk of losing things and to be honest, I would really like to know a proper solution for this annoying issue that seems to happen even if I play by the rulebook.