Comparing two branches in Git?

The Solution to Comparing two branches in Git? is


git diff branch_1..branch_2

That will produce the diff between the tips of the two branches. If you'd prefer to find the diff from their common ancestor to test, you can use three dots instead of two:

git diff branch_1...branch_2

~ Answered on 2012-03-23 06:11:26


Most Viewed Questions: