Tag Archives: pre-commit hook

Git Pre-commit hook

Yesterday I have written first code in Bash Script :D. It was a pre-commit hook which checks my Javascript files against bugs using JSLint. To install it, please download JSLint from http://www.javascriptlint.com/ and copy executable file (I renamed it from jsl to jslint) and config file to: your_project/.git/hooks and put following code into the pre-commit… Read More »