Skip to content

chore: ignore local .claude/ directory#4982

Merged
aglinxinyuan merged 1 commit intoapache:mainfrom
aglinxinyuan:chore/gitignore-claude
May 8, 2026
Merged

chore: ignore local .claude/ directory#4982
aglinxinyuan merged 1 commit intoapache:mainfrom
aglinxinyuan:chore/gitignore-claude

Conversation

@aglinxinyuan
Copy link
Copy Markdown
Contributor

@aglinxinyuan aglinxinyuan commented May 8, 2026

What changes were proposed in this PR?

Add .claude/ to .gitignore so locally-generated Claude Code artifacts (settings, launch configs, helper scripts, worktree pointers) don't get committed again. c1b6ae0543 recently had to remove four such files; this PR closes the gap so it doesn't recur. Root-level CLAUDE.md (which delegates to AGENTS.md) is unaffected.

Any related issues, documentation, discussions?

Closes #4981.

How was this PR tested?

  • git check-ignore -v .claude/settings.local.json → matched by the new .claude/ rule
  • Root CLAUDE.md still tracked (git ls-files CLAUDE.md returns CLAUDE.md)

Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Opus 4.7)

Claude Code writes settings, launch configs, and worktree pointers
under .claude/ in the repo root; these were accidentally committed
before (c1b6ae0) and removed without an accompanying ignore rule.
Add the directory to .gitignore so future runs don't reintroduce them.
Copilot AI review requested due to automatic review settings May 8, 2026 01:55
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@aglinxinyuan aglinxinyuan merged commit ad0def8 into apache:main May 8, 2026
19 checks passed
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.

Ignore local .claude/ directory

3 participants