#Pre-commit PHP Lint
Requires phpcs and WordPress-VIP code standards: https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards
- Create directory
mkdir ~/.git_template/hooks - Place or symlink pre-commit in this directory
- Make script executable
chmod +x pre-commit - Run
git config --global init.templatedir '{home_directory}/.git_template'to set this directory as a global git template, this will apply this template to any new repos - Run
git initon any existing repos to apply template to repo