git-hooks-util
v1.0.2
Published
## Origin * [git-hooks](https://github.com/tarmolov/git-hooks-js#readme) * [multiple-git-hooks.sh](https://gist.github.com/mjackson/7e602a7aa357cfe37dadcc016710931b)
Downloads
4
Readme
git-hooks-util
Origin
Installation
Install it globally
npm i git-hooks-util -gor
Install as a dependency
npm i git-hooks-util --save-devIf 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.
