git Removes Any Files and Directories Not Commited¶ 1 2 3 4# `-i` will run the cleaning process interactively $ git clean -i -d # Setting `-f` instead of `-i` will remove everything "not commited" automatically $ git clean -f -d