Run hooks only on certain branches
Closed this issue · 0 comments
angrykoala commented
Hi, As far as I know, there is no way to run the pre-commit hooks on certain branches. Currently I'm running pre-commit tests on all the branches on my project, but I also have a gh-pages
branch without test (or package.json) so the pre-commit hooks are sending an alert.
Is there a way of skipping that branch, or setting up which branches do you want to test?