Git / Mercurial hooks made easy.
tdog-husky-hgis a fork of
husky-hg. The only difference is, that it is a custom validator.
Husky can prevent bad commit.
npm install tdog-husky-hg --save-dev
yarn add tdog-husky-hg --dev
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
npm uninstall tdog-husky-hg
yarn remove tdog-husky-hg
Git GUI clients support
Working with multiple version of Node
nvm is installed, husky will try to use the
current installed Node version or use the project
Tip to use the system-installed version of node,
nvm provides a
Git submodule and subtree support
Mercurial subrepo support