Sensible git hooks for your projects.
![Gitter](https://badges.gitter.im/Join Chat.svg)
-
Execute
$ composer require --dev ob/hooker=1.0.x-dev
-
Copy the hooker config
cp vendor/ob/hooker/hooker.yml.dist hooker.yml.dist
and tweak it to suit your needs -
Add the command to your project's
.git/hooks/pre-commit
hook
#!/bin/sh
./vendor/bin/hooker hook:pre-commit
- Finally, make it executable
$ chmod +x .git/hooks/pre-commit
Hooker is released under the MIT License. See the bundled LICENSE file for details.