Git Reflog and Recovery Cheat Sheet/Create branch from ORIG_HEAD

Use ORIG_HEAD as a quick recovery anchor.

Section: Recovering Branches and HEAD States

Create branch from ORIG_HEAD

bash
bash
git branch recovered-orig ORIG_HEAD
Explanation

ORIG_HEAD often points to the pre-operation tip after merge, pull, reset, or rebase.

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 Recovering Branches and HEAD States
Restore a branch ref manually
Move a branch ref to a specific commit hash.
OpenIn sheetbashsame section
Search reflog for deleted branch tips
Find likely commit hashes for branch recovery.
OpenIn sheetbashsame section
Switch to a reflog entry in detached HEAD
Inspect a previous HEAD state without changing refs.
OpenIn sheetbashsame section
Recover work into a new branch
Create a new branch from a reflog entry without moving current branch yet.
OpenIn sheetbash3 tag match
Show reflog
List recent local HEAD and branch movements.
OpenIn sheetbash2 tag match
Restore branch to a reflog entry
Move the current branch back to a previous recorded state.
OpenIn sheetbash2 tag match