IntelliJ and Git: how to see the differences between a commit and two old commits?

You probably know this window where you can see the differences between the commit in ONE commit older.

enter image description here

Do you know how I can see exactly the same comparison, but between a commit and a previous commit, which is not necessarily ONE before the current one.

I know I can do it in one file, but I want to do it for the whole project.

+3


source to share


2 answers


You can select any number of commits in the git log window (using shift / ctrl and click or cursor keys) and the right pane will display the accumulated differences.



+5


source


In IntelliJ, unfortunately, there is no command or action to compare exact versions. Here are a couple of related requests: https://youtrack.jetbrains.com/issue/IDEA-125616 and https://youtrack.jetbrains.com/issue/IDEA-100431



However, there is a way to see what has changed between the two commits. To do this, you need to go to the Version Control - Log tab and select the entire range between the commits you want (for example, select a late commit, then scroll down to an older commit and Shift-click on it). In the right pane displaying the changed files, you will see all the changes.

+3


source







All Articles