Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
git hook to ensure requirements.txt and pip freeze are synced
# This hasn't been tested. I found it here: http://news.ycombinator.com/item?id=4290203
[hooks]
pretxncommit.pip = bash -c "diff -u requirements.txt <(source env/bin/activate &&
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment