gitty icon indicating copy to clipboard operation
gitty copied to clipboard

Unobtrusively extend git repositories with hooks. Additionally, share hooks between developers.

h1. Gitty : Unobtrusively extend git.

Gitty provides an interface to manage commonly used git-hooks for repositories. A few use cases are:

  • Make it so that git submodules are intellegently updated after switching branches or merging.
  • Prevent trailing whitespace from being committed.
  • Help prevent scratch / debug code from being committed by refusing to commit a KEYWORD that marks it as such.
  • Share hooks with collaborators

h2. Currently in alpha!

Missing features:

  • Only receive hooks from trusted publishers. (currently when gitty is activated on a repository, any hook published to origin is automatically installed)
  • It's very young and might break
  • Remote repository must be named origin for shared hooks to work. This is currently not configurable.

h2. Documentation

h3. Installation

gem install gitty

h3. Initialization

To use gitty with a git repository, you need to install the basic gitty hooks.

git hook init
  • Any existing hooks will be preserved. They are moved to .git/hooks/local/.d/original

h3. Enabling sharing

By default, it's turned off (security reasons). To enable it:

git hook init --enable-sharing

h3. Adding hooks

To see available hooks:

git hook list

To install one:

git hook install 

To share one:

git hook share 
git hook publish -m "added "

Read the cucumber features for an idea of how it works and what it does

h2. Issues

Report them here: http://github.com/timcharper/gitty/issues