+7 votes
1 view
in Devops and Agile by (20k points)
edited by

I have two branches, branch_1 and branch_2.

I want to see the differences between the two branches in Git.

1 Answer

+7 votes
by (28.4k points)
edited by

To produce the difference between the tips of the two branches.

git diff <branch_1>..<branch_2>

To find the difference from their common ancestor to test, you can use three dots instead of two:

git diff <branch_1>...<branch_2>

For more information regarding git and version controlling tools please go through the following tutorial that helps.

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...