Git · Branches and integration
git merge --abort
Cancels an in-progress merge and returns to the pre-merge state.
Syntax
git merge --abortExample
Example
git merge --abort
More in this group
Learn this in the course
Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.