Triggering the Real Conflict
git merge --no-ff feature/config-tweaks -m "Merge pull request: config tweaks"
CONFLICT (content): Merge conflict in README.md
CONFLICT (content): Merge conflict in config.json
Two real, independent conflicts — git auto-merged everything it safely could, and stopped exactly where both sides genuinely disagreed.
git status Never Lies About What's Left
"Unmerged paths" lists every file still needing a real decision — a genuine, always-accurate to-do list for finishing the merge.
Decoding the Raw Markers, By Hand
<<<<<<< HEAD
Status: published
=======
Status: ready for review
>>>>>>> feature/config-tweaks
Three real, fixed parts, in every conflict git ever shows: <<<<<<< HEAD opens YOUR branch's current content, ======= is the real dividing line, and >>>>>>> <branch> closes the INCOMING branch's version. Nothing here requires a git command to interpret — it is plain, readable text.
A real README status line and a real config.json setting were both edited on master AND on feature/config-tweaks, independently, while each side was unaware of the other. Merging them produces a real, genuine conflict — git auto-merges what it safely can, and stops cold on what it cannot.
The real skill this lesson builds is reading the raw conflict markers directly, by hand, before running a single resolution command. Every conflict git ever shows you uses this exact same real format — once you can decode it on sight, no conflict feels intimidating again.
Merge conflict
Git's honest admission that two branches changed the same real lines in genuinely incompatible ways, and it will not guess which one you want. Confirmed directly in this lab: git auto-merged every other real change, stopping only on the two lines both sides had actually touched.
Conflict markers (<<<<<<< / ======= / >>>>>>>)
A real, fixed text format git inserts directly into the file at each unresolved spot. <<<<<<< HEAD marks the start of your current branch's version; ======= divides it from the incoming branch's version, closed by >>>>>>> <branch-name>. Confirmed directly in this lab decoding both README.md and config.json using nothing but this format.
Takeaways
- A merge conflict is git's honest refusal to guess between two genuinely incompatible real changes
- git status always lists exactly which files remain unresolved — a real, accurate to-do list
- <<<<<<< HEAD marks your current branch's version; >>>>>>> <branch> closes the incoming branch's version
- The conflict marker format is always identical — only the real content between the markers ever changes