python-scripts/01_remove_all_pyc.md
Michael Herman 93926988ce Merge pull request #3 from staranjeet/master
grammatical error : remove_all_pyc.md
2016-03-27 13:58:49 -06:00

257 B
Executable File

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 in the root of the repo and add the line: *.pyc