Git Rebase Cheat Sheet/Abort a rebase

Cancel a rebase and return to the starting state.

Section: Interactive Rebase Basics

Abort a rebase

bash
bash
git rebase --abort
Explanation

Use this when the rebase becomes too messy or you want to restart with a different strategy.

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 Interactive Rebase Basics
Interactive rebase last 3 commits
Edit the last 3 commits.
OpenIn sheetbashsame section
Edit rebase todo during a rebase
Open the rebase todo list while a rebase is in progress.
OpenIn sheetbashsame section
Show current patch during rebase
Inspect the patch currently being replayed.
OpenIn sheetbashsame section
Continue rebase after resolving conflicts
Resume the rebase once conflicts are fixed.
OpenIn sheetbashsame section
Skip the current patch during rebase
Omit the commit currently being replayed.
OpenIn sheetbashsame section
Keep commit as-is
Todo action to replay a commit normally.
OpenIn sheettext2 tag match