Git pre-commit file for PHP projects
git clone
this repository, then copy and paste pre-commit to your Git hooks folder. Make sure that the pre-commit file is executable.- Copy the config.dist file to your Git hooks folder, and rename it to config.
- Edit the config file to add your preferences.
Kudos for Johnathan Pulos for his amazing Gist 😉.