{"name":"core.hooksPath","slug":"core-hookspath","family":"setting","title":"Settings keys","noun":"settings key","description":"Stray git environment variables in your shell can no longer misdirect worktree operations.","description_source":"entry","described_by":{"version":"2.1.222","anchor":"worktree-git-commands-run-with-a-scrubbed-git-environment"},"presence":{"first_seen":null,"removed_in":null,"in_current_build":false,"newest_mined":"2.1.336","builds":0,"mined_builds":175,"first_cited":{"version":"2.1.222","released_at":"2026-08-04 20:37:17","spans":4}},"aliases":[],"entries":[{"version":"2.1.333","anchor":"git-diff-no-longer-hard-codes-hookspathfsmonitor-overrides","heading":"git diff now takes its safety settings from the shared list","line":"git diff no longer carries its own inline hooks and file-monitor overrides and now uses the shared settings; core.askPass is still emptied","released_at":"2026-11-30 19:04:51","reason":"named in this entry, found in this entry's text"},{"version":"2.1.290","anchor":"git-command-line-config-warning-messages-reworded","heading":"Shorter warning when git is run with hooks or include paths on the command line","line":"The permission warning for git commands that set core.hooksPath or an include path on the command line is now shorter","released_at":"2026-10-05 18:12:44","reason":"found in this entry's text"},{"version":"2.1.281","anchor":"git-config-filter-can-drop-corehookspath","heading":"Git config filter can drop core.hooksPath","line":"A new helper can remove the `core.hooksPath` setting from a git configuration list in Claude Code's git and worktree support","released_at":"2026-09-23 17:01:17","reason":"found in this entry's text"},{"version":"2.1.280","anchor":"self-hosted-runner-session-scoped-git-config-for-lifecycle","heading":"Self-hosted runner: session-scoped git config for lifecycle hooks","line":"Self-hosted runner sessions now get their own git config so lifecycle hooks use separate signing and protocol rules from the main checkout","released_at":"2026-09-22 15:44:39","reason":"found in this entry's text"},{"version":"2.1.280","anchor":"configure-git-hookspath-override-simplified","heading":"--configure-git hooksPath override simplified","line":"The internal helper that sets git's core.hooksPath for --configure-git sessions was simplified, dropping symlink resolution","released_at":"2026-09-22 15:44:39","reason":"found in this entry's text"},{"version":"2.1.247","anchor":"every-git-command-now-runs-with-hooks-filesystem-monitors-an","heading":"Every git command now runs with hooks, filesystem monitors and prompt helpers disabled","line":"Every git command Claude runs now has hooks, filesystem monitors and prompt helpers turned off.","released_at":"2026-08-26 18:02:01","reason":"found in this entry's text"}],"entries_total":6,"docs":[{"source":"claude-code","path":"self-hosted-environments-configuration","title":"Customize sessions in self-hosted environments","documented":false},{"source":"claude-code","path":"self-hosted-environments-deploy","title":"Deploy self-hosted environments to production","documented":false},{"source":"claude-code","path":"ship-command","title":"Get a pull request ready with \/ship and \/steward","documented":false},{"source":"claude-docs","path":"claude-science\/troubleshooting","title":"Troubleshoot the Claude Science desktop app","documented":false}],"docs_total":4,"gates":[],"related":[{"name":"core.alternateRefsCommand","slug":"core-alternaterefscommand","description":"Claude Code's git safety overrides now add `core.alternateRefsCommand` in some cases, and the list is assembled differently"},{"name":"core.askPass","slug":"core-askpass","description":"Every git command Claude runs now has hooks, filesystem monitors and prompt helpers turned off."},{"name":"core.autocrlf","slug":"core-autocrlf","description":null},{"name":"core.excludesfile","slug":"core-excludesfile","description":"Global gitignore file lookup no longer runs the git command itself, just processes the result"},{"name":"core.fsmonitor","slug":"core-fsmonitor","description":"Stray git environment variables in your shell can no longer misdirect worktree operations."},{"name":"core.protectNTFS","slug":"core-protectntfs","description":"On Windows, some git calls can run with `core.protectNTFS=true` and retry without it if they fail, behind a remote switch"},{"name":"core.sparseCheckout","slug":"core-sparsecheckout","description":"Worktree sync now writes the complete tree in repositories using sparse checkout."},{"name":"core.sshCommand","slug":"core-sshcommand","description":"Git commands Claude runs can't prompt you for credentials or trust unknown SSH hosts anymore."}],"url":"https:\/\/changelogs.core-directive.com\/reference\/setting\/core-hookspath","family_url":"https:\/\/changelogs.core-directive.com\/reference\/setting.json"}