delete files from git and from next time added to untracked files code example Example 1: git remove untracked files git clean -fdx Example 2: git remove Untracked files git clean -f