how to checkout all the untracked files in git code example Example 1: git remove Untracked files git clean -f Example 2: clear untracked files git git clean -n