husky4th
Git hooks made easy
Husky can prevent bad git commit
, git push
and more
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.