Super simple structure/delegating script to allow for multiple scripts per hook.
- Hooks are contained in
.githooks/
- Scripts can be placed in Debian-style
hook-name.d/
directiories - A several scripts for use with awslabs/git-secrets is included as an example
- Scripts must be made executable
git config core.hooksPath .githooks
Setup is possible by using a symbolic linking.
find .git/hooks -type l -exec rm {} \; && find .githooks -type f -exec ln -sf ../../{} .git/hooks/ \;
- Add Makefile for easier setup.