Finding the Real Merge in History
git log --oneline --merges -5
Every real merge commit this project has ever made, most recent first — including the two real conflicts this block resolved.
Reviewing What Actually Happened
git show --stat <merge-commit>
git's own real record includes a "# Conflicts:" note, automatically appended the moment a merge commit resolves an actual conflict — a genuine, built-in audit trail requiring no extra effort to create.
Tracing the Real Repeated Touch Points
git log --oneline README.md | head -5
The exact same file, touched by multiple real, overlapping commits in a short span — the real, specific shape of what caused the conflict.
The Real Pattern, and the Real Fix
Both of this block's conflicts share an honest cause: a narrow, frequently-touched line (a status field, a config setting, a shared list) edited independently on short-lived branches that happened to overlap in time. The real, senior-level fix is not "communicate more" in the abstract — it is a specific, concrete practice: keep shared config/status fields in a single, designated owner's commits, or split them into smaller, less contested files.
Resolving conflicts is a real, necessary skill — but the senior move is noticing the real pattern behind them before they happen again. This block's own two real conflicts (the README/config merge, the rebase conflict) share an honest, specific cause: multiple people editing the exact same narrow status line or setting, repeatedly, on branches that lived just long enough to diverge.
This lesson reviews the real, actual history — not a hypothetical example — using git show and git log, then reasons through what a real team would change to make this kind of conflict genuinely less likely.
The "# Conflicts:" auto-note
git automatically appends a real "# Conflicts:" section listing every file that had a genuine conflict, the moment a merge commit resolving one is created. Confirmed directly in this lab: it appeared in the real config-tweaks merge commit's message with zero extra effort required to record it.
Conflict pattern review
Using real git history (git log --merges, git show, git log <file>) to identify what actually caused a genuine past conflict, rather than guessing. Confirmed directly in this lab: the real repeated touches to README.md's status line were visible directly in its own commit history.
Takeaways
- git automatically records which files genuinely conflicted in every merge commit's own message — a free, built-in audit trail
- git log --oneline <file> reveals real, repeated touch points on a shared field or file — the actual shape of conflict risk
- This block's own real conflicts shared a specific, honest cause: a narrow shared field, edited independently, with no single owner
- Real prevention is structural — a designated owner, shorter-lived branches, or splitting a contested file — not just "communicate more"