Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion chezmoi/private_dot_config/git/ignore.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -108,5 +108,6 @@ nohup.out

{{- end }}

**/.claude/settings.local.json
.claude/settings.local.json

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Changing **/.claude/settings.local.json to .claude/settings.local.json is not recommended for two reasons:

  1. Nested Projects / Monorepos: The **/.claude/settings.local.json pattern ensures that local settings are ignored at any directory depth, whereas .claude/settings.local.json only matches at the repository root.
  2. Automatic Management: Claude Code automatically checks for the exact pattern **/.claude/settings.local.json in the global gitignore file (~/.config/git/ignore). If it is modified or removed, Claude Code may automatically append the original pattern again, leading to duplicate entries.

It is best to keep the original pattern.

**/.claude/settings.local.json

.codegraph/
.memsearch/
Loading