Thursday, December 28, 2017

Comparing two branches in Git?

I have two branches, branch_1 and branch_2.
I want to see the differences between the two branches in Git.
----------
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

No comments:

Post a Comment