A merge conflict happens when Git finds two sets of changes that overlap and cannot be combined automatically. This can occur when two people edit the same lines in different ways.

Imagine two people writing different sentences in the same blank on a form. Git shows both versions and asks someone to decide which one to keep or how to combine them.

After choosing the right content, the person saves the resolved file and tells Git the conflict is handled. Read both changes carefully before deciding; the correct answer depends on what the project needs.