npm i git-hooks-util -g
or
npm i git-hooks-util --save-dev
If you install it as a dependency, it will automatically init the module after installing
ghu [init]
- read files in .git/hooks
- if hook does not exist, copy multiple-git-hooks.sh
- if exists, append to the end(assumed the shebang is /bin/sh)
- create folder .githooks
- create template in .githooks
- examples folder
- it would change git hooks behavior such that husky, git-hooks-js, etc. would be affected.