stage untracked files code example Example 1: checkout untracked files git clean -f Example 2: git abandon untracked files git clean -i