Verified65% confidenceSolutionExact time
Deleting a worktree should use git worktree remove rather than directly rm -rf, otherwise metadata will remain in .git/worktrees and need to be cleaned up with git worktree prune.
3
Sources
65%
Confidence
Long-term
Relevance
10/12/2026
First Seen
Sources
Related Entities
Related Claims
VerifiedGit refuses to let two worktrees share the same branch, reporting the error 'refactor' is already used by worktree.79% similarUnverifiedgit worktree prune only deletes Git's administrative records and never deletes actual files.79% similarUnverifiedGit only removes clean worktrees—no untracked files, no modified tracked files; unclean worktrees require `--force`, and locked ones require `--force` twice.79% similarUnverifiedGit documentation requires migrating core.bare and core.worktree from the shared config into the main worktree's config.worktree.72% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/1010361API
curl https://kongchang.com/api/v1/knowledge/claims/1010361MCP
get_claim(id=1010361)