Categories//mmit/Force Push Recovery

Force Push Recovery

intermediate8 min100 pts

A teammate accidentally force-pushed to main and overwrote 3 commits. The payment webhook fix everyone's waiting on is gone.

Alice's commits are missing from main. Bob says he force pushed. Can you figure out how to recover them?

What you're being evaluated on

Reading the reflog - Understanding which entries represent the lost commits.
Recovery strategy - The correct git commands to restore the commits.
Prevention awareness - What should be set up to prevent this in the future?

3 hints available (using hints reduces your score)

About this scenario

Three commits were force-pushed away. Reconstruct from reflog. A teammate accidentally force-pushed to main and overwrote 3 commits. The payment webhook fix everyone's waiting on is gone.

intermediate · 100 points · 8 min · Git & Gitflow

What you will practice

Play the full scenario above for free. More Git & Gitflow scenarios · Create a free account to save your progress.