Command

git merge --abort

Attempt to reconstruct the pre-merge state during an unfinished merge. Preexisting uncommitted changes may be difficult or impossible to recover.

Formal Syntax & Structure

git syntaxgit
git merge --abort

Working Example

Example Snippetgit
git merge --abort
Git Reference