Resolving by Rewriting the Real, Final Content
printf '# Recipe Collection\n\nStatus: published (config tweaks pending final review)\n' > README.md
printf '{\n "servings_default": 6,\n "unit_system": "imperial"\n}\n' > config.json
Both real intents genuinely combined: keeping "published" but noting the pending review, keeping the new servings count with the newer unit choice — a real, considered decision, not an arbitrary pick.
Staging, and Watching git status Update
git add README.md config.json
git status
"All conflicts fixed but you are still merging" — a real, honest progress report: the hard part is done, but the merge itself is not committed yet.
Completing the Real Merge
Reuses the original "Merge pull request: config tweaks" message from the failed merge attempt — a real, completed merge commit results.
Cleaning Up Immediately
git branch -d feature/config-tweaks
git push origin --delete feature/config-tweaks
The same real discipline from Block 2.2 — nothing stale left behind the moment the feature is safely, fully merged.
The two real conflicts from the last lesson are still sitting there, genuinely unresolved. Resolving one by hand means editing the file to remove the markers and decide what the real, final content should say — often combining both sides' intent rather than simply picking one.
git status is the real, honest guide throughout: it tells you exactly which files still need attention, and exactly when every real conflict has genuinely been resolved and staged.
Resolving by hand
Editing a conflicted file directly to remove the markers and write the real, final intended content — often combining both sides rather than choosing one. Confirmed directly in this lab: both README.md and config.json ended up with elements from both the master and incoming versions.
git commit --no-edit (completing a merge)
Once every conflict is staged, a plain commit completes the merge — --no-edit reuses the message already set when the merge was first attempted. Confirmed directly in this lab producing a real merge commit with both original parents.
Takeaways
- Resolving a conflict by hand means rewriting the file to its real, final intended content — often combining both sides
- git status genuinely tracks progress through a multi-file conflict, from "Unmerged paths" to "all conflicts fixed"
- git commit --no-edit completes a merge once every file is staged, reusing the original merge message
- The exact same branch cleanup discipline from Block 2.2 applies after a conflict-resolved merge too