1.0.2 • Published 4 years ago
git-hooks-util v1.0.2
git-hooks-util
Origin
Installation
Install it globally
npm i git-hooks-util -g
or
Install as a dependency
npm i git-hooks-util --save-dev
If you install it as a dependency, it will automatically init the module after installing
Usage
ghu [init]
What it is doing
- 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
Notes
- it would change git hooks behavior such that husky, git-hooks-js, etc. would be affected.