mirror of
https://github.com/hanzoai/husky.git
synced 2026-09-24 16:59:45 +00:00
v0.4.1
husky

husky prevents bad commit or push using Git hooks.
🐶 woof!
$ npm install husky --save-dev
// package.json
{
"scripts": {
"precommit": "npm test",
"prepush": "npm test"
}
}
git commit -m "Keep calm and commit"
Both npm scripts are optional, existing hooks aren't replaced and adding -n to your git commands lets you bypass hooks.
To uninstall husky, simply run npm rm husky --save-dev.
Languages
JavaScript
92.1%
Shell
7.9%