Skip to content

chore(gitignore): add .claude folder to gitignore#32141

Merged
vincentkoc merged 1 commit intomainfrom
chore/add-claude-folder-to-gitignore
Mar 2, 2026
Merged

chore(gitignore): add .claude folder to gitignore#32141
vincentkoc merged 1 commit intomainfrom
chore/add-claude-folder-to-gitignore

Conversation

@altaywtf
Copy link
Copy Markdown
Member

@altaywtf altaywtf commented Mar 2, 2026

Summary

  • Problem: Only .claude/settings.local.json was gitignored, leaving other .claude/ contents (e.g. memory files, local config) unignored and at risk of accidental commits.
  • What changed: Broadened the .gitignore entry from .claude/settings.local.json to .claude/ so the entire directory is ignored.
  • What did NOT change: No other gitignore rules or project files were modified.

Change Type

  • Chore/infra

Verification

echo "test" > .claude/test-file
git status  # .claude/test-file should not appear

🤖 Generated with Claude Code

@altaywtf altaywtf requested a review from vincentkoc March 2, 2026 20:25
@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps bot commented Mar 2, 2026

Greptile Summary

Broadened .gitignore entry from .claude/settings.local.json to .claude/ to ignore the entire Claude Code directory, preventing accidental commits of local configuration and memory files. This change aligns with existing patterns for other local tooling directories like .agents/ and .agent/.

Confidence Score: 5/5

  • This PR is safe to merge with no risk
  • Simple, focused gitignore change with correct syntax that improves repository hygiene by preventing accidental commits of local Claude Code files. No functional code changes.
  • No files require special attention

Last reviewed commit: d8f3ac5

@openclaw-barnacle openclaw-barnacle bot added size: XS maintainer Maintainer-authored PR labels Mar 2, 2026
@vincentkoc vincentkoc merged commit e45d26b into main Mar 2, 2026
29 of 30 checks passed
@vincentkoc vincentkoc deleted the chore/add-claude-folder-to-gitignore branch March 2, 2026 20:35
dawi369 pushed a commit to dawi369/davis that referenced this pull request Mar 3, 2026
OWALabuy pushed a commit to kcinzgg/openclaw that referenced this pull request Mar 4, 2026
zooqueen pushed a commit to hanzoai/bot that referenced this pull request Mar 6, 2026
alexey-pelykh pushed a commit to remoteclaw/remoteclaw that referenced this pull request Mar 18, 2026
alexey-pelykh pushed a commit to remoteclaw/remoteclaw that referenced this pull request Mar 18, 2026
lukeg826 pushed a commit to lukeg826/openclaw that referenced this pull request Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants