It's simple to revert a commit with Git.
But what if I want to revert a commit from a merge to cancel it and merge it later?
master--\--------------/------revert-merge------/------------------
\ / / merge nothing
\--branch--/----no-modification-----/------
If I merge again after a first merge Git won't accept my changes because I already merged before and someone (me or someone else) reverted these line and Git don't know why.
Git see I already did a merge then reverted it so when I do the second merge it doesn't know the reason of the revert and Git consider there is no more change.
So actually I should't do a simple revert when I want to cancel a commit. What is the correct operation to cancel/postpone a merge?
This can help a lot https://www.git-scm.com/blog/2010/03/02/undoing-merges.html