Interview practice question
Cleaning up a messy commit history before merging
Cloud & DevOps · Git and Version Control · Intermediate
Your feature branch has 30 commits like "fix typo" and "wip". How do you clean it up before merging?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Interactive rebase to squash/reword.
- Or squash merge on PR.
- Group into logical commits.
- Force push own feature branch (with lease).
- Communicate if others use branch.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.