git show staged code example
Example 1: How do I show the changes which have been staged
git diff --staged # or you can use --cached (they are synoyms, see the source)
Example 2: git show staged files
git diff --name-only --cached
git diff --staged # or you can use --cached (they are synoyms, see the source)
git diff --name-only --cached