Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Useful Git hooks
Shell
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
git-hooks.config
pre-commit-phpcs

README.md

Git hooks

Useful hooks for GIT.

Install

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.

Config

You can configure the hooks in git-hooks.config

Available hooks

  • pre-commit hook for PHP CodeSniffer - It will not allow you to commit if the PHP file contains any coding standard violation.
Something went wrong with that request. Please try again.