• 0

How to skip or bypass a pre commit hook in git

Lets say that you configured a commit hook like running a jshint, or some other code quality checker. But for some reason, at this point, you just want to commit even though the precommit hooks are spitting out errors.

To bypass your pre-commit scripts when commiting, just commit with the following option

git commit -n

or

git commit --no-verify