git diff: what is the difference between --cached and --staged
10:57 05 Oct 2016

To compare the staged with the last commit:

git diff --cached
git diff --staged

Both commands generate the same results, right?

git git-diff