How to revert a merge commit and then merge again