git-hooks rename pre-commit.sample to pre-commit and put it in your local repo .git/hooks/ directory.