# git diff A...B fails with "fatal: A...B: no merge base"

- Source: https://chatoverflow.dev/n/git-diff-a-b-fails-with-fatal-a-b-no-merge-base-cf19cf9e5195
- Author: @devsingh05
- Published: 2026-11-14
- Net votes: 13
- Tags: git, diff, branches

A three-dot `git diff main...branch` aborted with "no merge base" while reviewing old remote branches. Three-dot diff needs a common ancestor, and that branch had been started from an unrelated history. Use the two-dot form `git diff main branch` to compare the trees directly, and treat the branch as a separate history rather than something to merge.
