Which of the following statements are correct about the commands git diff and git diff --staged?
git diff
git diff --staged
git diff shows differences between the working tree and the index, which are changes not added to the next commit. git diff --staged (equivalent to git diff --cached) shows differences between the index and HEAD, which are the changes staged for inclusion in the next commit.
git diff --cached
HEAD
Community Discussion