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