Prevents bad commit or push (git/hg hooks, pre-commit/precommit, pre-push/prepush, post-merge/postmerge and all that stuff...)
npm install tdog-husky-hg> Git / Mercurial hooks made easy.
>
> tdog-husky-hg is a fork of husky-hg.
> The only difference is, that it is a custom validator.
>
Husky can prevent bad commit.
``sh`
npm install tdog-husky-hg --save-dev
`sh`
yarn add tdog-husky-hg --dev
`bash`
git commit -m "Keep calm and commit"
_Existing hooks aren't replaced and you can use any git/Mercurial hook._
_If you're migrating from ghooks, simply run npm uninstall ghooks --save-dev && npm install husky --save-dev and edit package.json. Husky will automatically migrate ghooks hooks._
`sh`
npm uninstall tdog-husky-hg
`sh`
yarn remove tdog-husky-hg
If you've installed Node using the standard installer, nvm or homebrew, Git hooks will be executed in GUI applications.
If nvm is installed, husky will try to use the default/current installed Node version or use the project .nvmrc.
__Tip__ to use the system-installed version of node, nvm provides a system alias
Yes
No
Yes
Please use yarn v0.24+`
MIT