What is a merge conflict?
A merge conflict happens when two branches change the same lines differently, so Git can't tell which to keep. Someone has to choose, line by line, before the merge can finish.
An example
You change the page title on a branch while main gets a different title. Merging shows both, and you pick one.
Where you’ll meet it
- Merge it into main · Save your code on GitHub
- Merge it into main · Save your code on GitLab
- What changes about saving code when more people work on it? · Saving your code