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

 987 total views,  1 views today

about author

Ankan Basu

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.