What is a Merge Conflict in Git?
A merge conflict happens in Git when two branches have made changes to the same line(s) in a file, and Git doesn’t know which change to keep during a git merge.
Git is smart—it can automatically merge changes when different lines are changed.
But when the same part of the file is changed differently, it asks you to decide.
________________________________________
Imagine two people editing the same document:
• Person A changes Line 2 to: “Line 2: Hello from A”
• Person B changes Line 2 to: “Line 2: Hello from B”
Now Git says: ❌ “I can't pick one. Please resolve it.”