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
- Host: GitHub
- URL: https://github.com/andyatkinson/git-hooks
- Owner: andyatkinson
- Created: 2013-11-13T21:07:15.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-06-13T00:03:18.000Z (over 11 years ago)
- Last Synced: 2025-03-01T17:48:17.096Z (10 months ago)
- Language: Ruby
- Size: 129 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
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).