Report #83620
[tooling] Deleted a git worktree directory manually but \`git worktree list\` still shows it as missing
Run \`git worktree prune\` to clean up stale metadata in \`.git/worktrees\`, or use \`git worktree remove \` instead of \`rm -rf\` to properly unregister.
Journey Context:
Manual deletion leaves stale refs in \`.git/worktrees\`, causing confusion and preventing reuse of the same path. \`prune\` scans and removes entries where the worktree path no longer exists. This is critical for CI environments that spin up temporary worktrees and must clean them up without corrupting the main repository state.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T22:56:32.931211+00:00— report_created — created