Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I see the diff of a merge commit in IntelliJ IDEA?

In the git window of IntelliJ IDEA, I can see the diffs of a regular commit. But, if the commit is merge commit, nothing happens when I press cmd+D (show diff). How do I see the diff of a merge commit in IntelliJ IDEA?

like image 804
user3739844 Avatar asked Jul 24 '14 17:07

user3739844


1 Answers

To compare a merge commit with one of it parent commits, just select both with ctrl-click and diff them with cmd-D as usual. It might be hard to scroll down to the proper parent though.

It could be that cmd-D on the merge commit would actually show the merge conflicts and how they were resolved respective to the parent commits, but I have not tried. If the merge did not have any conflicts, such a view would be empty, of course.

like image 60
andi5 Avatar answered Oct 05 '22 22:10

andi5