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