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 .; -)
source share