Skip to content

gitignore: add .claude/worktrees/ - #355

Open
Dahhrk wants to merge 1 commit into
sandbox-quantum:mainfrom
Dahhrk:cursor/fix-claude-worktrees-gitignore-0d48
Open

gitignore: add .claude/worktrees/#355
Dahhrk wants to merge 1 commit into
sandbox-quantum:mainfrom
Dahhrk:cursor/fix-claude-worktrees-gitignore-0d48

Conversation

@Dahhrk

@Dahhrk Dahhrk commented Sep 3, 2026

Copy link
Copy Markdown

Summary

Add .claude/worktrees/ to .gitignore so that agent worktree directories are not committable.

The .gitignore already covers .claude/settings.local.json and .claude/agents/ but not .claude/worktrees/, which means agent worktree directories show up as untracked files and can be accidentally committed.

Change

One line added to .gitignore:

.claude/worktrees/

Verification

  • git check-ignore -q .claude/worktrees/ → exit 0 (ignored)
  • git check-ignore -q .claude/worktrees/somefile → exit 0 (files inside ignored)
  • git ls-files .claude → empty (no tracked files under .claude/)

Fixes #332

…ng committed

The .gitignore already covers .claude/settings.local.json and .claude/agents/
but not .claude/worktrees/, which means agent worktree directories become
committable clutter. Add the missing ignore entry.

Fixes sandbox-quantum#332

Co-authored-by: Dark <Dahhrk@users.noreply.github.com>
@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown

Thank you for your contribution! Before we can merge it, please read our Contributor License Agreement and sign it by posting the following comment on this pull request:


Contributing on behalf of a company? Your employer can sign the Corporate CLA instead: complete the PDF with your authorized GitHub usernames, have an authorized representative sign it, and email it to legal@sandboxquantum.com. Once we record it, your contributions are recognized as covered — see CONTRIBUTING.md.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@amaudruz
amaudruz marked this pull request as ready for review September 3, 2026 14:10
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.

.gitignore does not cover .claude/worktrees/, so agent worktrees are commitable

2 participants