Delete un-tracked files from git

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

 784 total views,  1 views today

about author

Ankan Basu

ankanbasu@ankanbasu.com

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.