{"version":"1.0.124","anchor":"git-hooks-protection","canonical_anchor":"git-hooks-protection","heading":"Git Hooks Protection","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/1.0.124\/e\/git-hooks-protection","release_url":"https:\/\/changelogs.core-directive.com\/v\/1.0.124","markdown":"### Git Hooks Protection\n\n**What:** Claude Code now protects `.git\/hooks` directories in all git repositories within your workspace, requiring explicit permission before modifying hook scripts.\n\n**Details:**\n\n- Scans workspace for all git repositories using `.git\/HEAD` detection\n- Automatically adds `.git\/hooks` and `.git\/config` to protected paths list\n- Prevents unauthorized modification of pre-commit, post-checkout, and other git hooks\n- Complements existing `.git\/config` protection (present since v1.0.86)\n- **Evidence**: New protection logic in `YIA()` at lines 363503-363531, filtering `.git` from recursive scans at line 363462"}