husky4th
v4.0.1
Published
Prevents bad commit or push (git hooks, pre-commit/precommit, pre-push/prepush, post-merge/postmerge and all that stuff...)
Downloads
3
Maintainers
Readme
husky4th
Git hooks made easy
Husky can prevent bad git commit
, git push
and more 🐶 woof!
Not all huskies are suitable for house-sitting. I think the #4 is better than #5-8.
Install
This will install husky v4.
npm i -D husky4th
// package.json
{
"husky": {
"hooks": {
"pre-commit": "npm test",
"pre-push": "npm test",
"...": "..."
}
}
}
git commit -m 'Keep calm and commit'
Existing hooks are kept. Requires Node >= 10
and Git >= 2.13.0
.
Uninstall
npm uninstall husky4th
Git hooks installed by husky will be removed.