As a developer on php-src I recently found myself in the following situation:
ABC o---o---o version1 \ o---o-----o---o master xy DE o---o---o upstream/master xyz
So, when I do git push --dry-run upstream master version1 , I get typical:
! [rejected] master -> master (fetch first)
My natural answer is to reload a damaged branch and save commits:
git fetch upstream git rebase -p upstream/master
It is important to note that the initial merge merge was not trivial because there are so many changes between the version branch and the master; he is making efforts to resolve such a merger.
Performing the above rewrite operation causes a merge conflict, and I must resolve it again; it’s almost the same as what I’ve already done.
Is there a better way to do this? Or did I forget the obvious reinstallation option?
source share