List recent local HEAD and branch movements.
Section: Reflog Basics
Show reflog
bash
bash
git reflogExplanation
Reflog is local-only and records where refs pointed over time, which makes it invaluable for recovery.
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 Reflog Basics
Show reflog for a specific branch
Inspect reference updates for a named branch.
Preview reflog expiration impact
See what would be pruned from reflog without changing anything.
Restore branch to a reflog entry
Move the current branch back to a previous recorded state.
Recover work into a new branch
Create a new branch from a reflog entry without moving current branch yet.