Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (29.3k points)

However, I'd like to see a visual diff between two branches. So far, my best bet seems to be:

git diff --name-status master dev

which isn't very informative and not very visual.

Is there anything better out there?

1 Answer

0 votes
by (50.2k points)

To visualize diff between the branches you could use:

git diff branch1..branch2

This command will show the differences between branch1 and branch2.

Like this will compare the tips of each branch.

If you need a gui then you can use git diff tools to visualize the diff between the branches.

Reference: https://git-scm.com/docs/git-diff 

 

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...