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