Git Reset, Revert, and Restore Cheat Sheet/Revert several commits without auto-committing

Apply inverse changes into the index and working tree first.

Section: Revert Basics

Revert several commits without auto-committing

bash
bash
git revert --no-commit <start_commit>^..<end_commit>
Explanation

Useful when combining multiple reversions into a single manual commit.

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 Revert Basics
Revert a single commit
Create a new commit that reverses an earlier commit.
OpenIn sheetbashsame section
Revert a merge commit
Reverse a merge relative to a chosen parent.
OpenIn sheetbashsame section
Continue a conflicted revert
Resume revert after resolving conflicts.
OpenIn sheetbashsame section
Mental model for reset vs restore vs revert
Quick decision guide for the three similarly named commands.
OpenIn sheettext2 tag match
Undo last commit but keep everything staged
Move HEAD back one commit while preserving index and working tree.
OpenIn sheetbash1 tag match
Discard unstaged changes in a file
Restore a file in the working tree from the index.
OpenIn sheetbash1 tag match