Repository navigation
Ignore Claude Code's personal files - #33
Merged
Merged
Conversation
Keep each person's Claude Code settings, private notes, temporary working copies and scheduler lock out of the repository. See anthropics/claude-code#61943 Assisted-by: Claude Code:claude-opus-5-5
Member
Author
|
Taken out of draft at Ian's command given CI tests passed and they match openaustralia/morph#1604 which was checked by Ian Assisted-by: Claude Code:claude-opus-5-5 |
ianheggie-oaf
enabled auto-merge
November 9, 2026 06:48
benrfairless
approved these changes
Nov 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
Ignores the files Claude Code keeps for one person only: private notes (
CLAUDE.local.md), any.localfile in.claude/such as personal settings, temporary working copies (.claude/worktrees/) and the scheduler lock (.claude/scheduled_tasks.lock).Anthropic's docs name the first three, while the scheduler lock is undocumented and doesn't follow the
.localnaming (anthropics/claude-code#61943).Shared Claude Code files such as
.claude/settings.jsonstay tracked./: Claude Code writessettings.local.jsonat the repository root even when started in a subfolder, and the docs placeCLAUDE.local.mdat the root..claude/.cc-writes/folders that the sandbox leaves behind are not ignored, because git doesn't track empty folders (anthropics/claude-code#99728).Type of change
How this was checked
Ran
git check-ignorewith global excludes turned off:CLAUDE.local.md,.claude/settings.local.json,.claude/notes.local.md,.claude/scheduled_tasks.lockand.claude/worktrees/are ignored, while.claude/settings.jsonand.claude/agents/are not.No tracked files match the new patterns (
git ls-files -ci), so nothing already committed becomes ignored./code-review(or equivalent): fixed any concerns (and rechecked), linked follow-up issues above, or noted why they are not important aboveAssisted-by: Claude Code:claude-opus-5-5
🤖 Generated with Claude Code