git add all staged files code example Example 1: git show staged files git diff --name-only --cached Example 2: git only add modified files git add --all