Git Basics | git diff
git diff
Shows the differences between the last git commit and files in the current working tree that have not been added with git add.
git diff
Shows the differences between the last git commit and files in the current working tree that have been added with git add.
git diff --cached
Shows both differences at the same time: files in the current working tree that have been added with git add and files that have not been added.
git diff HEAD