Loading tutorials
pre-commit hook, run it, and learn the mistakes that make hooks silent7 min readcore.hooksPath fixes that, and what can still go 6 min readpre-commit hook, know that a non-zero exit status aborts the commit, and understand the difference between the staging area and the working tree. It covers the ways a client-side hook gets skipped, why that cannot be fixed on the client, and how to pair hooks w7 min readgrep and regular expressions.5 min readcore.hooksPath does. It also assumes you know that a hook blocks a commit by exiting non-zero. If any of that is unfamiliar, review the earlier chapters on hook execution and sharing hooks first.6 min readpre-commit hook, that you know hooks are executable files whose exit status decides whether Git continues, and that you understand the difference between the index and the working tree. It also assumes you know that --no-verify skips hooks. Here you wil7 min readcore.hooksPath as covered in earlier chapters. Here you will learn what pre-push receives, how to use that information, and which checks belong at this stage.6 min readcore.hooksPath shares hooks. You should also be comfortable reading shell scripts. Here you will learn how to find out why a hook did not run, why it behaved differently from what7 min read