This an exmaple of git hooks usage.
In this case we are going run django tests for our projects before a commit and do not allow make the commit without fixind tests :)
How you can use it:
- copy
pre-commit
to your.git/hooks
directory - edit
TEST_COMMAND
inpre-commit
to propertly tests run for your's project - create some changes and commit them :)