https://github.com/generoi/git-hooks
Some useful git hooks
https://github.com/generoi/git-hooks
Last synced: 17 days ago
JSON representation
Some useful git hooks
- Host: GitHub
- URL: https://github.com/generoi/git-hooks
- Owner: generoi
- Created: 2014-03-04T03:05:52.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2017-07-03T16:12:16.000Z (almost 9 years ago)
- Last Synced: 2025-12-26T06:16:14.528Z (6 months ago)
- Language: Shell
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 23
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# git-hooks
Some useful git hooks.
## Installation
git config core.hooksPath "vendor/generoi/git-hooks/hooks"
## Features
- `pre-commit`: Ensure all tests pass
- if `composer.json` is available: `composer test`
- if `package.json` is available: `npm test`
- `post-merge`: Update all third party dependencies
- if `composer.json` is available: `composer install`
- if `yarn.lock` is available: `yarn`
- if `package.json` is available: `npm install`
- if `bower.json` is available: `bower install`