git merge --abort

Category: Git - Core

git merge --abort

Abort an in-progress merge and restore pre-merge state

Cancels a merge that's in progress and returns the repository to the state before the merge started.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.