m2-phpcs-git-hook-pre-commit Magento 2 PHPCS Git Hook pre-commit Default PHPCS config. It can be expanded with aditional rulesets. Step 1. cp git-hooks/pre-commit .git/hooks/ Step 2. chmod +x .git/hooks/pre-commit