TIL is my collection of short, technical daily learnings. 247 and counting.
Call a Git Hook on Demand
Git hooks are scripts that run at key moments in the version-control lifecycle. And, they’re just scripts! So we can call them when we want. <shell> <hook> For me in this project (Zsh + Husky), this could look like: zsh .husky/pre-commit This runs my pre-commit script anytime.