https://github.com/b-coimbra/git-hooks
preventing myself from pushing broken code to production
https://github.com/b-coimbra/git-hooks
git-hooks hooks
Last synced: about 2 months ago
JSON representation
preventing myself from pushing broken code to production
- Host: GitHub
- URL: https://github.com/b-coimbra/git-hooks
- Owner: b-coimbra
- Created: 2020-06-02T21:23:16.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-13T17:10:59.000Z (almost 5 years ago)
- Last Synced: 2025-01-28T17:22:08.806Z (4 months ago)
- Topics: git-hooks, hooks
- Language: Shell
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
Awesome Lists containing this project
README
#+TITLE: Git hooks
Custom git hooks for various setups, mainly to prevent myself from pushing unnoticed inconsistencies to a branch.
* Usage
Clone this repo into the root of the repository that you want to apply the hooks to: ~git clone https://github.com/0-l/git-hooks && cd git-hooks/~
This repo contains a script to quickly move the specified hooks into the .git/hooks folder: ~./set-hook ~
Where =folder= is the name of the folder containing the hooks (eg. ~./set-hook angular~).
~.set-hook~ will also remove ~git-hooks/~ from the list of untracked files.
* Hooks provided
For now, only these:
| Name | hooks |
|---------+---------------------------------------|
| angular | =pre-push= =pre-commit= =post-commit= |
| react | ### |
| node | ### |
| node/TS | ### |
| ruby | ### |