From 6b4c4aedb52531a7321ccb850714bce80421f076 Mon Sep 17 00:00:00 2001 From: Michael Herman Date: Wed, 9 Apr 2014 20:56:32 -0600 Subject: [PATCH] added .pyc script --- .gitignore | 2 ++ remove_all_pyc.md | 9 +++++++++ 2 files changed, 11 insertions(+) create mode 100644 .gitignore create mode 100644 remove_all_pyc.md 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