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