Command

git reflog

Inspect locally recorded ref updates; retention is limited and uncommitted data is not guaranteed recoverable.

Formal Syntax & Structure

git syntaxgit
git reflog [-n N]

Working Example

Example Snippetgit
git reflog -n 3
Git Reference