Dani Oct 1, 2025
  • prevent-direct-push.json 16 lines · 553 B
prevent-direct-push.json
JSON
{
"description": "Prevent direct pushes to protected branches (main, develop). Blocks git push com..."
"hooks": {
"PreToolUse": [1 item]
}
}

Next step

More hooks in git, in alphabetical order.