Skip to main content

Remove all untracked files

To remove all unwanted un-tracked files you can just run:

git clean

Use it with -n for a dry run to see the list of files that it will be removing.

Use it with -d to also remove directories, can be used with -n.