gmc
Troubleshooting

Worktree Cleanup

Safely remove stale or merged worktrees.

Use dry runs before deleting worktrees.

List state

gmc wt list

Preview removal

gmc wt remove feature-login --dry-run
gmc wt prune --dry-run

Remove merged branches

gmc wt prune

Force dirty removal

gmc wt remove feature-login -f
gmc wt prune -f

Find worktrees across repositories

gmc wt list -A

This scans the home directory for repositories with linked worktrees, so stale families outside the current repository show up too.

Task cleanup

gmc task gc

Dry-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.

On this page