git merge --abort Cancels the merge process and tries to go back to the state before the merge.