Start a history with no parent commit.
Section: Undo, Reset, Revert, and Recovery
Create orphan branch
bash
bash
git checkout --orphan gh-pagesLearn 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 Undo, Reset, Revert, and Recovery