There are numerous cases where you merge branches and messed up. Because of all the conflicts and confusion, the project is now a mess and your team members are blaming you for it. In this case, you have to revert previous commit (the merge commit) . This will undo the merge entirely and bring back the entire project to a state when you didn’t do any merges. This can be a lifesaver if you have messed things up beyond repair.
To revert the merge, type the following:
$ git reset -–merge
Refernece appuals.com/how-to-fix-…