how to remove merge from a branch in git code example Example: remving merged commit git revert -m 1 <SHA of merge>