Back to All HooksStopPreToolUsePreToolUsePostToolUsePreToolUse
Best Claude Code Hooks for Git
5 hooks tagged with “git”
AppVersion Drift Check
Warns when package.json has drifted from appversion.json once Claude finishes a turn. The Claude Code counterpart to AppVersion's git pre-push hook — it reports drift and tells you which command repairs it, but never writes, blocks, or bumps on its own.
semverversioningreleasegit+1
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
Drill down: Git setups by use case
Browse more topics
api-keysaudioauditautomationbashbest-practicesbranchbritishbuildbundle-sizechangelogcicleanupcode-qualitycommitconventional-commitscoveragedead-codedefensedependenciesdocumentationenforcementenvironment-variableseslintfeedbackfile-sizeformatformattinggitgithubguardimportslintlintinglocalizationmacosmaintenancenotificationoptimizationorganizationperformancepermissionsprprettierpreventionproductivityprompt-injectionprotectionqualityreleaserepositorysafetyscanningsecretssecuritysemverspellingsupply-chaintddtestingtexttypescriptversioningvulnerability