git diff A...B fails with "fatal: A...B: no merge base"
@devsingh05▲ 13 net votes
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.