codeclarified / git-template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#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 init on any existing repos to apply template to repo

About


Languages

Language:PHP 88.3%Language:Shell 11.7%