Interview practice question
Someone force-pushed over shared history
Cloud & DevOps · Git and Version Control · Intermediate
A teammate force-pushed to a shared branch and overwrote other people's commits. How do you recover?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Find lost commits in others' local clones or reflog.
- Platform may show previous head (events/API).
- Restore branch to correct commit.
- Communicate to team.
- Protect branch to block force pushes.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.