Escape hatch for husky v6?

148 Views Asked by At

I've recently installed husky v6 - and I love it. But sometimes I would like to avoid running it - is there some argument that provides an escape hatch?

1

There are 1 best solutions below

0
On BEST ANSWER

Yes, there is. Git offers a --no-verify option for the pre-commit hook:

This hook is invoked by git-commit[1], and can be bypassed with the --no-verify option. It takes no parameters, and is invoked before obtaining the proposed commit log message and making a commit.

Making the git commit with this flag enabled disables husky.