Skip to content

Instantly share code, notes, and snippets.

@benedictkioko
Forked from icaoberg/remove.sh
Created May 20, 2019 08:53
Show Gist options
  • Save benedictkioko/8c2e890d869ee47b954bba61a3eb8372 to your computer and use it in GitHub Desktop.
Save benedictkioko/8c2e890d869ee47b954bba61a3eb8372 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