python-scripts/01_remove_all_pyc.md

9 lines
258 B
Markdown
Raw Normal View History

2014-04-10 04:56:32 +02:00
I always forget this ...
To recursively remove all those pesky *.pyc* files from a git repo, run this command:
```bash
$ 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`