An open API service indexing awesome lists of open source software.

https://github.com/andyatkinson/git-hooks

A place to store git hook-triggered code and a method to install them
https://github.com/andyatkinson/git-hooks

Last synced: 5 months ago
JSON representation

A place to store git hook-triggered code and a method to install them

Awesome Lists containing this project

README

          

### Git hooks

Git repositories have a `hooks` directory that can be modified for a given repository. This project adds a way to install and remove hooks for a project. The project has a couple example hooks.

#### Hooks

* post-merge: show the last 3 commits after pulling, rebuild ctags
* pre-commit Rails hook: check for typical bad strings that shouldn't be committed

##### Install

ruby script/hookify /path/to/project

##### Remove

rm /path/to/project/.git/hooks/hook_to_delete

Verify the hooks were installed by checking the `.git/hooks` directory.

The hookify script is from [edouard](http://github.com/edouard).