Skip to content

Instantly share code, notes, and snippets.

View woutervh's full-sized avatar

Wouter Vanden Hove woutervh

View GitHub Profile
@woutervh
woutervh / git-multi-hook-template
Last active October 28, 2021 21:03 — forked from damienrg/git-multi-hook-template
Script to allow multi hooks per hook type for git
#!/usr/bin/env bash
# Allow multiple hooks.
#
# To use it copy this script with executable permission in ".git/hooks/hook-name"
# where hook-name is the name of the hook (see man githooks to know available hooks).
# Then place your scripts with executable permission in ".git/hooks/hook-name.d/".
#
# Changes:
# - add support for symlinked commithooks