git pull accidental merge commit remove from local hit historyu code example Example: remving merged commit git revert -m 1 <SHA of merge>