added .pyc script
This commit is contained in:
parent
6cc74b9195
commit
6b4c4aedb5
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
.pyc
|
||||||
|
.DS_Store
|
9
remove_all_pyc.md
Normal file
9
remove_all_pyc.md
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
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`
|
Loading…
Reference in New Issue
Block a user