Skip to content

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