Problem Statement
You force-pushed the wrong history and lost your local branch tip. How can `git reflog` help you recover?
Explanation
Use `git reflog` to find the previous HEAD (e.g., `HEAD@{2}`) then `git branch rescue HEAD@{2}` or `git reset --hard <that-id>` to restore the state.
Practice Sets
This question appears in the following practice sets:
