how to list staged files in git code example Example: git show staged files git diff --name-only --cached