Reputation: 1645
I have a feature branch called feature. I merged it to the master but then realize it's not ready to release yet, so I have to revert it to avoid blocking work of other people.
Note that I don't have permission to revert directly on master. To revert, I have to create a new branch feature_revert from master, revert the merge and merge this new branch to master again.
Now after a while and my changes are ready to merge again, what's the correct way to re-merge to master?
Sorry if I make things a bit complicated. Just want to know what's the best practice in this situation.
Upvotes: 1
Views: 84
Reputation: 1324128
Simply merge the feature branch to master again.
That should not work indeed, since it was already merged as part of a PR.
Creating a new separate branch (option 3: feature_remerge
) is the easiest way to proceed, in order for the right merge content to be merged to master
.
Upvotes: 1