Back to All HooksPreToolUsePreToolUse
Git Hooks for Claude Code
2 hooks tagged with “git”
Branch Protection
Prevents direct file edits when on protected branches like main or production
gitbranchprotectionsafety
Commit Message Linter
Validates that commit messages follow conventional commit format before allowing commits
gitcommitlintingconventional-commits
Browse more topics
audioautomationbashbranchbritishbuildbundle-sizecicode-qualitycommitconventional-commitsdefenseenforcementeslintfeedbackfile-sizeformatformattinggitguardimportslintlintinglocalizationmacosnotificationoptimizationorganizationperformancepermissionsprettierpreventionproductivityprompt-injectionprotectionqualityrepositorysafetyscanningsecretssecurityspellingtddtestingtexttypescript