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

Notes

Force cleanup can discard dirty worktree state. Inspect the worktree before using it.

On this page