unstage staged files git code example Example 1: git show staged files git diff --name-only --cached Example 2: unstage staged files git git reset HEAD file_path