Skip to content

Instantly share code, notes, and snippets.

@phpdude
Forked from wolfhechel/pre-commit
Created April 6, 2016 17:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phpdude/03cb875ffb1cdde7a3ea27befe05bac3 to your computer and use it in GitHub Desktop.
Save phpdude/03cb875ffb1cdde7a3ea27befe05bac3 to your computer and use it in GitHub Desktop.
Auto add Django migrations before commit
find . -type d -name migrations -not -exec git check-ignore -q {} \; -exec git add {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment