git command to check staged files code example Example 1: git show staged files git diff --name-only --cached Example 2: git check staged changes git diff --cached