To compare the staged with the last commit:
git diff --cached git diff --staged
Both commands generate the same results, right?
The documentation for git diff says "--staged is a synonym of --cached", so yes.
git diff
--staged
-cached