Merge Conflict
Merge Conflict
When the same line was changed differently in two places, so Git stops because it doesn't know which one to keep.
💡 It's two people editing the same sentence in the same document at the same time. A person has to pick which one is right.
🤖 Say this to your AI
I have a merge conflict. For each conflicting file, explain in simple words what each side changed, and merge them in a way that keeps both. When you're done, check that the build works.
The key word is ‘Merge Conflict’. Including it helps AI understand you much more precisely.
📌 Good to know
If you save with the <<<<<<< and >>>>>>> marks still in the code, your site will break. Make sure they're cleaned up completely.
When to use it
- When you see a 'CONFLICT (content)' message
- When <<<<<<< ======= >>>>>>> marks appear in your code
- When merging branches gets stuck
Also called: conflict, merge conflict, git conflict, resolve conflict, <<<<<<<, merge error, both modified