Step 01 / 09
What is a conflict?
Concept
Keyword: merge conflict A conflict happens when two branches have modified the same part of the same file. Git doesn't know which version to keep. It asks you to choose.
Imagine a shared document. You and a colleague modify the same paragraph at the same time. The software doesn't know which version to keep. It asks you to decide together.
That's exactly what happens with Git. A conflict is not an error. It's Git telling you: "I can't decide for you".
Concept
Key point Git automatically resolves most merges. A conflict only occurs when the same lines have been modified in both branches. If two branches modify different files, or different parts of the same file, Git merges on its own.