Describe a situation where you had to resolve a complicated merge conflict involving multiple files.

Resolving a complicated multi-file merge conflict is a process of isolating each conflicting file, understanding both sides' intent, and carefully reconciling the changes so the final code is functionally correct and consistent.

Key Points

Example

Two developers both refactored overlapping parts of an OrderService and a PricingService at the same time; using git mergetool to walk through each file and confirming intent with both authors kept the merge accurate instead of guessing which version was "right."

Interview Tip

A concise interview answer is

I use a visual merge tool to work through conflicts file by file rather than guessing from raw markers, and I talk to the other contributors to understand their intent when it isn't obvious. Once everything's resolved, I run the full test suite before finalizing the merge, since manual conflict resolution is easy to get subtly wrong.

Last updated: 16 July 2026

Previous question: How can you track changes made by others in a shared repository?

Next question: How do you create and manage tags in Git, and when would you use them?

More Git - Level II interview questions

All Git - Level II questions