Parse PHP error on php files and detect "console syntax" on javascript or coffee files before commit.
Find your git project path.
$ chmod +x bin/hooks.sh pre-commit
$ ./bin/hooks.sh your_project_path
Bo-Yi Wu, Twitter: @appleboy, Blog: http://blog.wu-boy.com