← All Projects
git-multi-hook

git-multi-hook

ToolOpen SourceOriginal

Git only allows one script per hook event — a single pre-commit, a single commit-msg, and so on. git-multi-hook solves this by acting as a dispatcher: install it once as each hook, and it will discover and run every script you've placed in a corresponding hooks directory -- in parallel. It supports both global and repository hooks.

This repo makes it possible to layer hooks from multiple sources — linting scripts, quality gates, formatters, or test runners — without any of them stomping on the others. Existing hooks continue to work unchanged, and adding a new one is as simple as dropping a script in the right directory.