To enable GIT hooks (detailed info):
$ commithook install
$ commithook tracker:wizard
Fetch PHPCS package (for CommitHook global installation):
$ composer global require squizlabs/php_codesniffer:~2.0@stable
Go to your project git root directory and run commands:
$ curl https://codeload.github.com/andkirby/commithook-standard/tar.gz/magento-ecg | tar zxf -
$ mv -f commithook-standards-magento-ecg/.co* .
$ rm -rf commithook-standards-magento-ecg/
Install magento-ecg standards
$ composer --working-dir=.coding-standards install -o
You may make quick test for the integration here.
$ git add .commithook .coding-standards .commithook.xml
$ git commit -m '@@through Added commithook files.' && git push