Browse reflog entries using log formatting.

Section: Reflog Basics

Show reflog as a log

bash
bash
git log -g --oneline --decorate
Explanation

`git log -g` formats reflog traversal as commit log output, which many users find easier to scan.

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
List recent local HEAD and branch movements.
OpenIn sheetbashsame section
Show reflog for a specific branch
Inspect reference updates for a named branch.
OpenIn sheetbashsame section
Preview reflog expiration impact
See what would be pruned from reflog without changing anything.
OpenIn sheetbashsame section
Restore branch to a reflog entry
Move the current branch back to a previous recorded state.
OpenIn sheetbash3 tag match
Recover work into a new branch
Create a new branch from a reflog entry without moving current branch yet.
OpenIn sheetbash3 tag match
Create branch from ORIG_HEAD
Use ORIG_HEAD as a quick recovery anchor.
OpenIn sheetbash2 tag match