Skip to content

Instantly share code, notes, and snippets.

@nicolasmendoza
Forked from icaoberg/remove.sh
Last active September 7, 2015 20:28
Show Gist options
  • Save nicolasmendoza/905565ebf7935b50eb7c to your computer and use it in GitHub Desktop.
Save nicolasmendoza/905565ebf7935b50eb7c 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