Git hooks, made easy and lightweight for Node

GitHub | Hooks list | Migrating | NPM

hitched makes Git hooks easy

With hitched, you can easily prevent garbage-y commits and keep bad code out of your repositories.

Installation

Simply install hitched as a dependency...

npm install --save hitched

And you're now able to use all of the nifty Git hooks, right in your package scripts.

package.json : "scripts"

{ " precommit " : " npm test " , " prepush " : " npm test " , " ... " : " ... " }

Pretty awesome, right?

Migration guide / Why migrate?

If you're migrating from another Node Git hook package or are considering doing so, have a look at the migration guide: Migrating to hitched

Full list of Git hooks

hitched supports all common Git hooks.

For a full list of supported Git hooks and information about the hooks, see the list over here.

hitched in CI environments

See the docs article: Using hitched in a CI environment