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