git-pre-commit-rrd

1.0.1 • Public • Published

captain-git-hook version build

This is refer to captain-git-hook,thanks maxhoffmann. Only modify the .git folder path for my project.

define git hooks as scripts in your package.json (requires node >= 0.12)

Usage

package.json

{
  "scripts": {
    "pre-commit": "echo 'this prevents commiting' && exit 1"
  }
}

Add a script to your package.json for any git hook you want to listen to.

Currently supported hooks:

pre-commit
post-commit
post-merge
pre-push

Installation

npm i captain-git-hook

LICENSE

The MIT License (MIT) Maximilian Hoffmann

Readme

Keywords

Package Sidebar

Install

npm i git-pre-commit-rrd

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • liucong