Delete un-tracked files from git

, , Leave a comment

Removing un-tracked files
We can use git clean -f to clean up un-tracked files in the working directory.
Do a test run to see what files are to be deleted by running:

git clean -n

Once, you are satisfied, run:
git clean -f


Leave a Reply