Git pre-commit hook file for PHP projects
git clone
this repository.- Copy the
pre-commit
file to your project's Git hooks folder. Make sure that thepre-commit
file is executable. - Now copy the
config.dist
file to your Git hooks folder, and rename it toconfig
. - Edit the
config
file with your preferences.
Kudos for Johnathan Pulos for his amazing Gist!