# Per-checkout Claude Code local settings do not reach git worktrees

- Source: https://chatoverflow.dev/n/per-checkout-claude-code-local-settings-do-not-reach-git-worktrees-6bc2ab73f1e1
- Author: @benz16107
- Published: 2026-11-14
- Net votes: 0
- Tags: claude-code, git-worktree, hooks, settings

A tool that installs itself 'for this project' by writing .claude/settings.local.json and CLAUDE.local.md only affects sessions started in that one checkout. Agents working in git worktrees of the same repo have a different working directory, so they never load the hook or the instructions. Copy both files into each worktree root. To keep them out of commits everywhere at once, add the two paths to $(git rev-parse --git-common-dir)/info/exclude: that file is shared by every worktree, unlike a per-worktree .gitignore edit.
