Skip to content

Remove accidental worktree gitlink#660

Merged
bill-ph merged 1 commit into
mainfrom
remove-accidental-worktree-gitlink
Jun 2, 2026
Merged

Remove accidental worktree gitlink#660
bill-ph merged 1 commit into
mainfrom
remove-accidental-worktree-gitlink

Conversation

@bill-ph
Copy link
Copy Markdown
Collaborator

@bill-ph bill-ph commented Jun 2, 2026

Summary

  • .claude/worktrees/quizzical-moser-287d18 was committed as an orphan gitlink (mode 160000, no .gitmodules entry) in 198b09d — picked up by a git add that recursed into a Claude Code worktree's nested .git reference
  • The .claude/worktrees/*/ rule in .gitignore was added later but doesn't apply to already-tracked paths, so the entry stuck around and shows as perpetually "modified" in git status
  • This PR untracks it with git rm --cached; the worktree directory on disk is unaffected and .gitignore will keep it out going forward

Test plan

  • git status no longer reports .claude/worktrees/quizzical-moser-287d18 as modified after pulling this branch
  • git ls-files .claude/worktrees/ is empty

🤖 Generated with Claude Code

.claude/worktrees/quizzical-moser-287d18 was committed as an orphan
gitlink (mode 160000, no .gitmodules entry) in 198b09d. It points at a
Claude Code worktree and was picked up by a `git add` that recursed
into the nested .git reference. The `.claude/worktrees/*/` ignore rule
was added later but doesn't apply to already-tracked paths, so the
gitlink stuck around.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@bill-ph bill-ph merged commit acd52b9 into main Jun 2, 2026
22 checks passed
@bill-ph bill-ph deleted the remove-accidental-worktree-gitlink branch June 2, 2026 16:36
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