Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 405 Bytes

README.md

File metadata and controls

19 lines (11 loc) · 405 Bytes

PHP precommit hook

Introduction

This scripts provides an easy way to verify the syntax of your php files before commit them.

It looks only into modified and new files and if it detects any error it stops the commit process.

Installation

  1. cat pre-commit.sh >> /path/to/repo/.git/hooks/pre-commit
  2. enjoy

any suggestion emailme [email protected]