A guide to git hooks.