A Git conflict occurs when two branches have changed the same lines of the same file in incompatible ways, and Git can't automatically determine which version to keep during a merge, rebase, or cherry-pick.
Two developers both edit the same line of a config file's timeout value on different branches; when one merges into the other, Git can't decide which value is correct and stops, leaving conflict markers in the file for a human to resolve.
<<<<<<< HEAD
timeout = 30
=======
timeout = 60
>>>>>>> feature-branchA concise interview answer is
A conflict happens when two branches change the same lines of a file differently and Git can't auto-merge them. It marks the conflicting sections with markers, and I resolve it by editing the file to keep the correct content, then staging it with git add before continuing.
Last updated: 16 July 2026
Previous question: What is a Git merge?
Next question: What is a Git remote?