diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d597474 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.pyc +.DS_Store \ No newline at end of file diff --git a/remove_all_pyc.md b/remove_all_pyc.md new file mode 100644 index 0000000..2891215 --- /dev/null +++ b/remove_all_pyc.md @@ -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` \ No newline at end of file