GitCheatSheet.org logo
Home / How To

Abort a merge

git merge --abort

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