Skip to content

Ignore Claude Code per-user settings - #4552

Merged
Mag-nus merged 1 commit into
ACEmulator:masterfrom
Mag-nus:ignore-claude-local-settings
Nov 24, 2026
Merged

Mag-nus merged 1 commit into
ACEmulator:masterfrom
Mag-nus:ignore-claude-local-settings

Conversation

@Mag-nus

@Mag-nus Mag-nus commented Nov 24, 2026

Copy link
Copy Markdown
Member

Ignore Claude Code per-user settings

The problem

.claude/settings.local.json is Claude Code's per-user settings file. It holds the command permissions one user has approved on their own machine. Claude Code rewrites it every time a permission is granted, so it keeps showing up as a changed file and is easy to commit by accident. It has already been committed by mistake once.

The file is personal: another contributor's copy would hold different permissions, and committing it applies one person's approvals to everyone who pulls.

The fix

Add .claude/settings.local.json to .gitignore, next to the existing Visual Studio and VS Code entries.

Only the local settings file is ignored. Claude Code also reads a shared, intentionally committed .claude/settings.json, and that stays trackable.

Testing

  • In a clean checkout of this branch, git check-ignore -v reports .gitignore:32 for .claude/settings.local.json, and git status still lists a new .claude/settings.json as untracked.
  • No tracked files change. Nothing under .claude/ is tracked on master.

Files

  • .gitignore

🤖 Generated with Claude Code

.claude/settings.local.json holds one user's approved command
permissions. Claude Code rewrites it as permissions are granted, so it
shows up as a change and gets committed by accident.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Mag-nus
Mag-nus merged commit 0f8ba7d into ACEmulator:master Nov 24, 2026
2 checks passed
@Mag-nus
Mag-nus deleted the ignore-claude-local-settings branch November 24, 2026 13:34
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.

2 participants