{"version":"2.1.337","anchor":"windows-git-hooks-disabled-via-nul-hookspath-during-watch-w","canonical_anchor":"windows-git-hooks-disabled-via-nul-hookspath-during-watch-w","heading":"On Windows, git hooks are switched off and Claude Code checks that git obeys","tier":"notice","area":"Windows","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337\/e\/windows-git-hooks-disabled-via-nul-hookspath-during-watch-w","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337","markdown":"### On Windows, git hooks are switched off and Claude Code checks that git obeys\n\nOn Windows, Claude Code now switches off git hooks during a watch and warns you to upgrade git if git ignores that\n\n**Unclear.** It is not clear which Claude Code feature does this watching.\n\n**What**\n\nGit hooks are scripts in a project that git runs on its own when certain things happen. On Windows, Claude Code can now point git's hooks setting at the Windows null device with `-c core.hooksPath=\/\/.\/NUL`. The null device is a stand-in location that holds nothing. This stops hooks from running while Claude Code is watching for changes.\n\nClaude Code also asks both copies of git it uses whether they understand this setting. If one does not, it shows a message asking you to upgrade git, because that git might still run hooks. Two other checks come with this:\n\n- A check for hidden Unicode characters in names.\n\n- Scanning of hook commands that understands PowerShell.\n\n**Why**\n\nThis stops a project's git hooks from running unexpectedly on Windows while Claude Code is watching it. Older versions of git may not understand the setting, which is why you may be asked to upgrade.\n\n- Area: Windows\n- Names: `core.hooksPath`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: yes"}