git
merge
ai_generated
true
CONFLICT (content): Merge conflict in file.txt
ID: git/merge-conflict-markers
95%Fix Rate
96%Confidence
50Evidence
2023-01-01First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 2 | active | — | — | — |
Root Cause
Git cannot automatically merge changes — both branches modified the same lines.
genericWorkarounds
-
95% success Resolve manually: open conflicting files, choose correct code between <<<<<<< and >>>>>>>
Use git diff to see both sides; remove conflict markers after resolving
-
90% success Use a merge tool: git mergetool — opens a visual diff/merge editor
Configure with: git config merge.tool vimdiff
Dead Ends
Common approaches that don't work:
-
Accepting 'ours' or 'theirs' blindly for all files
75% fail
Discards one side's changes entirely without reviewing
-
Deleting the conflicting files and recreating them
85% fail
Loses git history; may miss important changes from either side
Error Chain
Frequently confused with: