How to Use Git Hooks: Preventing Direct Pushes to main with pre-push, and Sharing Them Across a Team (lefthook/husky) July 20, 2026 5 min readGit Development