CS FundamentalsModerateWipro NLTH · GATE CS

Which situation in Git definitely produces a merge conflict?

  1. A. Two branches add different new files
  2. B. Two branches change different files
  3. C. One branch is simply ahead of the other
  4. D. Two branches change the same lines of the same file in different ways

Correct answer: D. Two branches change the same lines of the same file in different ways

Git cannot choose automatically between conflicting edits to the same lines; unrelated changes merge cleanly.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic