tdog-husky-hg
v0.1.6
Published
Prevents bad commit or push (git/hg hooks, pre-commit/precommit, pre-push/prepush, post-merge/postmerge and all that stuff...)
Downloads
4
Maintainers
Readme
tdog-husky-hg
Git / Mercurial hooks made easy.
tdog-husky-hg
is a fork ofhusky-hg
. The only difference is, that it is a custom validator.
Husky can prevent bad commit.
Install
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 ghooks
hooks.
Uninstall
npm uninstall tdog-husky-hg
yarn remove tdog-husky-hg
Tricks
Git GUI clients support
If you've installed Node using the standard installer, nvm or homebrew, Git hooks will be executed in GUI applications.
Working with multiple version of Node
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
Git submodule and subtree support
Yes
Mercurial subrepo support
No
Cygwin support
Yes
Yarn support
Please use yarn
v0.24+
License
MIT