Skip to content

gitignore: ignore .claude/worktrees/#19963

Merged
anacrolix merged 2 commits intomainfrom
anacrolix/claude-worktrees
Mar 19, 2026
Merged

gitignore: ignore .claude/worktrees/#19963
anacrolix merged 2 commits intomainfrom
anacrolix/claude-worktrees

Conversation

@anacrolix
Copy link
Copy Markdown
Contributor

.claude/worktrees/ is used by Claude Code for temporary git worktrees during isolated agent tasks. Adding it to .gitignore prevents these from being accidentally staged or committed.

The .claude/ section already ignores settings.local.json, projects/, and skills/**/skill.md — this adds the missing worktrees/ entry.

Claude Code uses .claude/worktrees/ to store temporary git worktrees
for isolated agent tasks. Without this entry they could be accidentally
staged or committed. The .claude/ section already covers
settings.local.json, projects/, and skills/**/skill.md.
@anacrolix anacrolix force-pushed the anacrolix/claude-worktrees branch from d71baf8 to d4717f6 Compare March 18, 2026 00:23
@anacrolix anacrolix marked this pull request as ready for review March 18, 2026 01:58
@anacrolix anacrolix requested a review from Giulio2002 as a code owner March 18, 2026 01:58
@anacrolix anacrolix enabled auto-merge (squash) March 18, 2026 01:58
@anacrolix anacrolix merged commit e3b1eac into main Mar 19, 2026
34 of 35 checks passed
@anacrolix anacrolix deleted the anacrolix/claude-worktrees branch March 19, 2026 09:28
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