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


git commit --no-verify

Ryan Sukale

Ryan Sukale

Ryan is just a regular guy next door trying to manage his life and finances.

You may also like...

Leave a Reply

Your email address will not be published.