Git Reset, Revert, and Restore Cheat Sheet/Reset out of a conflicted merge state

Try to leave local changes intact while backing out of a merge-like operation.

Section: Reset Basics

Reset out of a conflicted merge state

bash
bash
git reset --merge ORIG_HEAD
Explanation

Useful after failed merge or pull operations. Git documents `--merge` as intended for resetting out of conflicted merges.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Reset Basics
Undo last commit but keep everything staged
Move HEAD back one commit while preserving index and working tree.
OpenIn sheetbashsame section
Undo last commit and unstage changes
Move HEAD back one commit and leave changes in the working tree.
OpenIn sheetbashsame section
Discard last commit and local changes
Move HEAD back one commit and discard index and working tree changes.
OpenIn sheetbashsame section
Unstage a single file
Remove a path from the index without changing its contents in the working tree.
OpenIn sheetbashsame section
Use reflog after a mistaken reset
Find the previous branch tip after a bad reset.
OpenIn sheetbash3 tag match
Mental model for reset vs restore vs revert
Quick decision guide for the three similarly named commands.
OpenIn sheettext2 tag match