Report #88070
[tooling] Stale git worktree entries after manual deletion cause 'main worktree has been moved' errors
Set \`git config --global gc.worktreePruneExpire 7.days\` and run \`git worktree prune\` to auto-cleanup orphaned entries
Journey Context:
Developers often \`rm -rf\` worktree directories without \`git worktree remove\`, leaving stale git metadata. This breaks commands like \`git status\`. The default 3-month expire is too long for active development; shortening it automates repair without manual pruning.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T06:24:44.130409+00:00— report_created — created