install-git-hooks

1.0.3 • Public • Published

install-git-hooks

Makes it easy for git hooks to be managed by version control. Also takes care of some compatibility issues between Linux, Mac and Windows.

Requires (Git) bash.

Usage

From the root of your git project, run:

bash git-hooks.sh

This will create scripts for all the git hooks. These scripts look for ${hook_name}.sh in the root of your git project and run it. This way, your hooks will be subject to version control.

Use with NPM

You can also use this script with your NPM packages:

npm install install-git-hooks --save-dev

This will automatically install the git hooks. A dev dependency will be added to package.json so every time a developer runs npm install for your project, the git hooks will be installed automatically.

Readme

Keywords

none

Package Sidebar

Install

npm i install-git-hooks

Weekly Downloads

1

Version

1.0.3

License

MIT

Last publish

Collaborators

  • mpcref