Remove completed worker worktrees and their branches.
/plugin marketplace add schmug/karkinos/plugin install karkinos@karkinosRemove completed worker worktrees and their branches.
$ARGUMENTS - Optional: specific worktree path, branch name, or --all-mergedCheck for uncommitted changes:
git -C <worktree> status --porcelain
Warn if dirty.
Check if branch is merged:
git branch --merged main | grep <branch>
Warn if unmerged.
Remove worktree and branch:
git worktree remove <path>
git branch -d <branch> # -D if unmerged and user confirms
--all-merged: