gmc
Worktree

Remove

Remove worktrees and optionally their branches.

gmc wt remove deletes one or more worktrees.

Usage

gmc wt remove feature-login
gmc wt rm feat-a feat-b

Delete branch too

gmc wt rm feature-login -D

Dirty worktrees

gmc wt rm feature-login --dry-run
gmc wt rm feature-login -f

Bulk cleanup

gmc wt rm --all -D

Notes

Use --dry-run before destructive cleanup.

On this page