Cancel a rebase and return to the starting state.
Section: Interactive Rebase Basics
Abort a rebase
bash
bash
git rebase --abortExplanation
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
Edit rebase todo during a rebase
Open the rebase todo list while a rebase is in progress.
Show current patch during rebase
Inspect the patch currently being replayed.
Continue rebase after resolving conflicts
Resume the rebase once conflicts are fixed.
Skip the current patch during rebase
Omit the commit currently being replayed.