CLAIM-2026-11-10-02
The first time Claude Code writes .claude/settings.local.json in a git repository that does not already ignore it, it adds **/.claude/settings.local.json to the user's global git excludes file; a file created by hand is not covered.
Why it matters
The protection is per machine. Fresh clones, CI runners and other laptops carry no ignore rule unless the repository adds one.
Sources
- anthropic2026claude