Back to All HooksPreToolUsePreToolUsePostToolUsePreToolUse
Git Hooks for Claude Code
4 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
Auto Changelog
Automatically appends entries to CHANGELOG.md when Claude commits code, capturing the date and commit message
changelogdocumentationgitautomation
Auto PR Description
Automatically generates a pull request description from commit messages and changed files when creating a PR
gitprautomationgithub
Use cases that include git
Browse more topics
api-keysaudioauditautomationbashbest-practicesbranchbritishbuildbundle-sizechangelogcicleanupcode-qualitycommitconventional-commitscoveragedead-codedefensedependenciesdocumentationenforcementenvironment-variableseslintfeedbackfile-sizeformatformattinggitgithubguardimportslintlintinglocalizationmacosmaintenancenotificationoptimizationorganizationperformancepermissionsprprettierpreventionproductivityprompt-injectionprotectionqualityrepositorysafetyscanningsecretssecurityspellingsupply-chaintddtestingtexttypescriptvulnerability