Skip to content

chore: ignore local agent worktrees - #37

Merged
smiggleworth merged 1 commit into
mainfrom
chore/ignore-agent-worktrees
Sep 12, 2026
Merged

smiggleworth merged 1 commit into
mainfrom
chore/ignore-agent-worktrees

Conversation

@smiggleworth

Copy link
Copy Markdown
Contributor

Summary

Claude Code creates git worktrees under .claude/worktrees/. They are registered worktrees holding real branches, and several are locked — but the directory was untracked and unignored, so a stray git add . could commit an entire nested checkout.

Adds .claude/ to .gitignore.

No source or test changes; verified the repo's own test discovery is unaffected.

Claude Code creates git worktrees under .claude/worktrees/. They are full
checkouts of the repo, and leaving them untracked-but-unignored means they can
be picked up by a stray 'git add .'.
@smiggleworth
smiggleworth merged commit e676d3a into main Sep 12, 2026
3 checks passed
@smiggleworth
smiggleworth deleted the chore/ignore-agent-worktrees branch September 12, 2026 11:01
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.

1 participant