Useful hooks for GIT.
Copy the hook files into your .git/hooks/ directory, set up the config file and enable the hooks you want by renaming the sample hooks and adding the path to the hook you want to use.
You can configure the hooks in git-hooks.config
- pre-commit hook for PHP CodeSniffer - It will not allow you to commit if the PHP file contains any coding standard violation.