Git diff of staged and unstaged changes

Answered

Hello,

is there any way how to show diff of staged changes `git diff --cached <file>` and unstaged changes `git diff <file>`. Diff window is showing only `git diff HEAD <file>`

Thank You for advice.

 

1
2 comments

No, there is no way to do so. IDE does not distinguish between staged and not staged changes.

See https://youtrack.jetbrains.com/issue/IDEA-63391

0
Avatar
Permanently deleted user

 To be honest, 8 years old issue a lot of complains there and no will from JetBrains to implement it even if any current tool supports that :(

2

Please sign in to leave a comment.