Prevents bad commit or push (git hooks, pre-commit/precommit, pre-push/prepush, post-merge/postmerge and all that stuff...)
npm install 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.

This will install husky v4.
``sh`
npm i -D husky4th
`js`
// package.json
{
"husky": {
"hooks": {
"pre-commit": "npm test",
"pre-push": "npm test",
"...": "..."
}
}
}
`sh`
git commit -m 'Keep calm and commit'
_Existing hooks are kept. Requires Node >= 10 and Git >= 2.13.0._
`sh``
npm uninstall husky4th
_Git hooks installed by husky will be removed._