Skip to content

neonnoon/hookit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hookit

hook it or not — git hook manager.

hookit manages your git hooks for reusability between repositories. It extends git hooks such that multiple hooks of the same type can be executed.

It also keeps all your hooks at a common place, usually ~/.hookit, and just links them where ever needed.

All this is done with the git hook command.

Install

The easiest way to install hookit is with Homebrew:

brew install neonnoon/formula/hookit

Manual install

If you don't want to use Homebrew, just clone this repo and make sure it's in your PATH.

Usage

Now this doesn't do much yet. You'll need a set of hooks, for example, hooks-basic. They are installed like so:

git hook install https://github.com/neonnoon/hooks-basic

That makes all its hooks available:

git hook find

Hooks can then be added to a repository, e.g.:

git hook add hooks-basic/pre-commit/conflict

About

hook it or not — git hook manager.

Topics

Resources

Stars

Watchers

Forks

Languages