May 4, 2018

Diff two branches in Git

Produce the diff between the tips of the two branches.

git diff branch_1..branch_2

Find the diff from their common ancestor to test, you can use three dots instead of two:

git diff branch_1...branch_2