python-scripts/scripts/01_remove_all_pyc.md
2016-12-17 09:22:43 -07:00

9 lines
257 B
Markdown
Executable File

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