Great unstated or uncommitted changes in IntelliJ Idea

In the IntelliJ Idea IDE, how do I make the equivalent of a simple ol ' git diff (ideally git diff -w ) or git diff --staged , so I can view my changes side by side with my HEAD branch? I basically want the same as Project Explorer -> Compare With -> HEAD Revision in Eclipse Juno.

I learned how to compare different branches in IntelliJ, but I did not develop how to do it - the current branch does not appear as an option in the project tree → Git → Compare with branch .... The answer below explains how to do this for one file , but this does not work for the entire project or even a separate directory, only separate files.

I have been using IntelliJ for the first time in 8 years, so I probably don't see anything obvious. Unfortunately, the IntelliJ resident expert is completely new to Git .; -)

+8
source share
3 answers

You can use the version control window to view all modified files (⌘-9). Then you can select the file and press ⌘-D to view the diff for it.

+3
source

You can see the diff of the open file by going to the Main menu → VSC → GIT → Compare with the same version of the repository.

The toolbar also has a shortcut enter image description here with which you can directly view the diff of an open file.

+2
source

Press Alt + 9 to get the Local Changes view with the information you need.

https://www.jetbrains.com/help/idea/version-control-tool-window-local-changes-tab.html

0
source

All Articles