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.
- cat pre-commit.sh >> /path/to/repo/.git/hooks/pre-commit
- enjoy
any suggestion emailme [email protected]