Stop rebasing and restore branch state.
Section: Merge, Rebase, and Commit Selection
Abort rebase
bash
bash
git rebase --abortLearn 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 Merge, Rebase, and Commit Selection