Interview practice question
Recovering work after a bad reset
Cloud & DevOps · Git and Version Control · Beginner
You ran git reset --hard and lost commits you needed. Can you recover them?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- git reflog shows previous HEAD positions.
- Find commit hash before reset.
- git reset --hard <hash> or create branch.
- Reflog local, time-limited.
- Uncommitted changes not recoverable.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.