Prevent Direct Push
Hooks git 365
npx claude-code-templates@latest --hook git/prevent-direct-push Content
JSON
{
"description": "Prevent direct pushes to protected branches (main, develop). Blocks git push com..."
"hooks": {
"PreToolUse": [1 item]
}
}