Troubleshooting
Worktree Cleanup
Safely remove stale or merged worktrees.
Use dry runs before deleting worktrees.
List state
gmc wt listPreview removal
gmc wt remove feature-login --dry-run
gmc wt prune --dry-runRemove merged branches
gmc wt pruneForce dirty removal
gmc wt remove feature-login -f
gmc wt prune -fFind worktrees across repositories
gmc wt list -AThis scans the home directory for repositories with linked worktrees, so stale families outside the current repository show up too.
Task cleanup
gmc task gcDry-run by default; lists stale task sessions and clean worktrees of finished
tasks with their reasons. --apply kills live, unattached sessions of
finished nodes or done tasks — it never touches worktrees or files.
Notes
Force cleanup can discard dirty worktree state. Inspect the worktree before using it.