Problem Statement
You rewrote history and lost commits locally. How can `reflog` help?
Explanation
`git reflog` shows previous HEAD positions. Identify the lost commit or pre-rebase state and `git reset --hard <hash>` or create a new branch from it to recover.
Practice Sets
This question appears in the following practice sets: