Skip to content

Instantly share code, notes, and snippets.

@ii0
Forked from icaoberg/remove.sh
Created December 22, 2015 08:02
Show Gist options
  • Save ii0/cb91fb37a4d7a106ef49 to your computer and use it in GitHub Desktop.
Save ii0/cb91fb37a4d7a106ef49 to your computer and use it in GitHub Desktop.
[Git] Remove all *.pyc files from your git repository
#!/bin/bash
find . -name "*.pyc" -exec git rm {} \;
git commit -m "Removed compiled python files in distribution left after last commit"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment