A teammate force-pushed to main and overwrote commits — how do you recover?
A force push can rewrite history and make commits disappear from the remote branch —
but they’re often recoverable.
Steps:
Run git reflog locally to view all commit references:
git reflog show origin/main