HOW TO GET RID ONF UNTRACKED FILES IN GIT code example Example 1: clear untracked files git git clean -n Example 2: git remove untracked files git clean -f