Loading tutorials
sh script. By the end you will have a working pre-commit hook that blocks bad commits.3 min readgit add, git commit and git push.3 min readcore.hooksPath shares hooks. Here you will see how hooks get skipped, on purpose or by accident, and why a server-side check has to back them up.3 min readsh and regular expressions. Here you add a hook that checks the commit message instead of the staged files.3 min readpre-commit script, know the difference between the index and the working tree, and have shared hooks with core.hooksPath. Here you will see when a hook manager is worth adding and how the three common ones differ.4 min readcore.hooksPath. Here you will move slow checks out of pre-commit and into pre-push.3 min readcore.hooksPath. Here you will learn why hooks fail to run, how to see what they do, and what changes between operating systems.3 min read