git remove merge commit and commits code example Example: remving merged commit git revert -m 1 <SHA of merge>