Interview practice question
A long-lived feature branch is painful to merge
Cloud & DevOps · Git and Version Control · Intermediate
A feature branch has been open for two months, and merging it into main now produces hundreds of conflicts. How would you handle it, and how would you avoid this in future?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Merge main into branch incrementally; resolve in chunks.
- Split into smaller PRs if possible.
- Pair with authors of conflicting changes.
- Future: short-lived branches, feature flags.
- Regular rebasing/merging from main.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.