untracked files git remove from repository code example Example 1: git remove untracked files git clean -fdx Example 2: git abandon untracked files git clean -i