git-hooks-util

1.0.2 • Public • Published

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

  1. 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)
  2. create folder .githooks
  3. create template in .githooks
  4. examples folder

Notes

  1. it would change git hooks behavior such that husky, git-hooks-js, etc. would be affected.

Readme

Keywords

Package Sidebar

Install

npm i git-hooks-util

Weekly Downloads

2

Version

1.0.2

License

ISC

Unpacked Size

12.7 kB

Total Files

6

Last publish

Collaborators

  • chriswong924