A Fresh, Real Conflict
git merge --no-ff feature/weekly-list -m "Merge pull request: weekly shopping list"
CONFLICT (content): Merge conflict in shopping-list.md
Both branches genuinely added a different item to the same shopping list line.
The Real Three-Way View, No GUI Needed
git show :1:shopping-list.md # base — common ancestor
git show :2:shopping-list.md # ours — master's version
git show :3:shopping-list.md # theirs — feature/weekly-list's version
Exactly the three real panels a mergetool GUI would show — pulled directly from git's own index, no editor or graphical session required.
Resolving With the Full Real Picture
printf 'Shopping List Template\n\nMilk, eggs, bread, butter, cheese.\n' > shopping-list.md
git add shopping-list.md
git commit --no-edit
Seeing all three versions side by side makes combining both real additions (butter AND cheese) an obvious, informed choice rather than a guess.
A real mergetool GUI (vimdiff, VS Code, IntelliJ) shows three panels: the common ancestor (base), your branch's version (ours), and the incoming branch's version (theirs). This offline sandbox has no such GUI available — checked directly, every real mergetool option requires a graphical session this VM does not have.
The real, useful part of a mergetool is not the GUI chrome — it is that three-way view. git show :1:, :2:, and :3: pull exactly those three real versions straight from git's own index during a conflict, using nothing but plain commands.
git show :1:/:2:/:3:<file>
Reads a specific stage of a conflicted file directly from git's index: stage 1 is the common ancestor (base), stage 2 is your branch's version (ours), stage 3 is the incoming branch's version (theirs). Confirmed directly in this lab pulling all three real versions with no GUI tool involved.
Base / ours / theirs
The real three-way terminology any mergetool GUI uses: base is the last common ancestor, ours is your current branch's version, theirs is the version being merged in. Confirmed directly in this lab: the exact same three real pieces of information, retrieved without any graphical tool.
Takeaways
- This sandbox genuinely has no GUI mergetool available — confirmed directly by checking every real tool option
- git show :1:/:2:/:3:<file> pulls the real base, ours, and theirs versions straight from git's index
- This is exactly the same real information any mergetool GUI visualizes — just without the visual layout
- Knowing this plain-command technique means a missing GUI tool never genuinely blocks resolving a conflict