git ignore untracked file command code example Example 1: git remove untracked files git clean -f Example 2: git remove untracked files git clean -n