Script To Remove Files Made Either By Python Or Git

Jason Swails jason.swails at gmail.com
Fri Oct 9 11:44:21 EDT 2015


On Fri, Oct 9, 2015 at 6:08 AM, Joshua Stokes <joshua.stokes at icloud.com>
wrote:

> Hi
>
> Is there an available script to remove file created by either using the
> Python module or by using git?
>

​There's always this nugget:

git clean -fxd

This will get rid of *all* untracked files in the current directory of a
git repo (and recursively all subdirectories).  You can optionally specify
a directory at the end of that command.

Careful with this sledgehammer, though, as it will also trash any untracked
source code files as well (and you may never get them back).

HTH,
Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20151009/33f48e86/attachment.html>


More information about the Python-list mailing list