how to delete unstaged files list after git status code example Example 1: how to remove untracked files in git git clean -f Example 2: clear untracked files git git clean -n