I have two git branches (master and fix_log_messages). I have been making various commits in the fix_log_messages branch and then periodically merging these changes/commits into master. As a result, the master branch contains multiple merges, due to the periodic merging of fix_log_messages branch into master branch.
I now need to remove all the commits which belong to fix_log_messages branch from master branch. In other words I need to undo multiple merges. I understand that I can revert a single merge using git revert -m 1 <merge-commit>
. But what would be the workflow for removing multiple merges on a branch?
FYI - Changes to master have already been pushed to remote. All merges were performed using git merge --no-ff fix_log_messages
.