Show staged changes
Prints the changes added to the index, which the next commit will record.
git diff --stagedReport an issue (opens in a new tab) wrong command, wrong danger level, typo… (on GitHub)
Adapted from tldr-pages (common/git-diff.md), licensed under CC BY 4.0.