A slightly improved pre-commit hook for git
Companies using pre-commit
Why people like pre-commit
Add a one-liner



pre-commit checks your code for errors before you commit it. pre-commit is configurable.

pre-commit's Features
  • debugger: make sure you don't commit a debugger statement
  • tabs: make sure your code uses leading spaces instead of tabs
  • whitespace: make sure you don't commit trailing whitespace
  • jslint: syntax check your javascript before you commit it
  • ci: run a quick test suite before you commit