Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kvnn/3176838 to your computer and use it in GitHub Desktop.
Save kvnn/3176838 to your computer and use it in GitHub Desktop.
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