Skip to content

gitignore: ignore settings.local.json at any depth - #60

Open
keithharvey wants to merge 1 commit into
beyond-all-reason:masterfrom
keithharvey:gitignore-settings-local
Open

gitignore: ignore settings.local.json at any depth#60
keithharvey wants to merge 1 commit into
beyond-all-reason:masterfrom
keithharvey:gitignore-settings-local

Conversation

@keithharvey

Copy link
Copy Markdown
Contributor

.claude/settings.local.json was path-anchored to the repo root, so a nested workspace or a subdirectory opened on its own leaves its settings.local.json showing up as untracked noise.

Unanchoring the pattern makes it match at any depth. It still covers the root .claude/settings.local.json — verified:

$ git check-ignore -v .claude/settings.local.json
.gitignore:27:settings.local.json	.claude/settings.local.json

The path-anchored entry only covered the repo-root .claude/. A nested
workspace or a subdirectory opened on its own writes its own
settings.local.json, which then shows up as untracked noise.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant