python-scripts/scripts/01_remove_all_pyc.md

9 lines
257 B
Markdown
Raw Permalink 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 {} \;
```
2015-10-16 07:12:38 +02:00
Then make sure to add a *.gitignore* in the root of the repo and add the line: `*.pyc`