chore: ignore Claude Code worktrees - #422
Conversation
.claude/worktrees/ holds full checkouts of this repo, inside the repo. An unqualified `git add -A` in the main checkout therefore stages one as an embedded git repository and commits a bare gitlink instead of any real change. Scoped to the worktrees directory so checked-in .claude config (settings.json, agents, skills) stays tracked. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
|
Overall Grade |
Security Reliability Complexity Hygiene |
Code Review Summary
| Analyzer | Status | Updated (UTC) | Details |
|---|---|---|---|
| Docker | Jul 14, 2026 8:33a.m. | Review ↗ | |
| JavaScript | Jul 14, 2026 8:33a.m. | Review ↗ | |
| Python | Jul 14, 2026 8:33a.m. | Review ↗ | |
| Rust | Jul 14, 2026 8:33a.m. | Review ↗ | |
| Shell | Jul 14, 2026 8:33a.m. | Review ↗ |
Important
AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe ChangesGitignore update
Estimated code review effort: 1 (Trivial) | ~2 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
What
One line: git ignores
.claude/worktrees/.Why
.claude/worktrees/holds full checkouts of this repo, inside the repo. An unqualifiedgit add -Ain the main checkout therefore stages a worktree as an embedded git repository and commits a bare gitlink instead of the actual change:This happened while working on #413: the resulting commit contained nothing but
.claude/worktrees/pr413-cc | 1 +and none of the real changes. It was reverted non-destructively, but the trap is open to anyone using Claude Code on this repo.Scope
Deliberately limited to the
worktrees/subdirectory, so checked-in.claudeconfiguration (settings.json, agents, skills) stays tracked. Verified:🤖 Generated with Claude Code
Summary by CodeRabbit