python-scripts/remove_all_pyc.md
2014-04-09 20:56:32 -06:00

258 B

I always forget this ...

To recursively remove all those pesky .pyc files from a git repo, run this command:

$ find . -name "*.pyc" -exec git rm -f {} \;

Then make sure to add a .gitignore and the root of the repo and add the line: *.pyc