Parse PHP error on php files and detect "console syntax" on javascript or coffee files before commit.
Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
README.md
pre-commit

README.md

git-hooks

Parse PHP error on php files and detect "console syntax" on javascript or coffee files before commit.

How to install

Find your git project path.

$ chmod +x bin/hooks.sh pre-commit
$ ./bin/hooks.sh your_project_path

Author

Bo-Yi Wu, Twitter: @appleboy, Blog: http://blog.wu-boy.com