git remove all untracked and ignored files code example Example: how to remove untracked files in git git clean -f