SyntaxFix
Write A Post
Hire A Developer
Questions
You can show changes that have been staged with the --cached flag:
--cached
$ git diff --cached
In more recent versions of git, you can also use the --staged flag (--staged is a synonym for --cached):
--staged
$ git diff --staged