Terminal
CONFLICT (content): Merge conflict in … — Automatic merge failed; fix conflicts and then commit the result.
- What it means
- Two branches changed the exact same lines of a file in different ways, so Git is asking which version to keep.
- Likely causes
- Pulling changes from
mainafter bothmainand your current branch edited the same file. - Starting a new feature branch from an outdated local
maininstead of pulling first.
- Pulling changes from
- Prevention
- Pull
mainbefore starting every new branch, and keep each branch focused on one small task.
Copy for your agent
Git stopped with a merge conflict. Show me both versions in plain words, tell me what you recommend keeping, and wait for my OK before resolving and committing.
Was this page helpful?