how to rever staged changes in git to un untracked files code example Example 1: clear untracked files git git clean -f Example 2: git abandon untracked files git clean -i