A set of git hooks I use on PHP projects
- Copy the contents of the repo in .git/hooks
- Make every script executable
chmod -R a+x
- Run
composer install
For every available hook there is an entry script, this will run every script in the folder ./git/hooks/hookname-scripts
. These scripts will run in numerical order.
Start every scriptname with a number to alter the order of execution.
The available git hooks can be found here: https://www.kernel.org/pub/software/scm/git/docs/githooks.html