gh wt rm
Remove a worktree and its associated branch
Synopsis
Remove a worktree and its associated branch. Will prompt if there are uncommitted changes (unless —force is used).
gh wt rm [worktree-name]
Examples
# Remove a worktree by name
gh wt rm pr_123
# Remove a worktree with force
gh wt rm issue_456 --force
Options inherited from parent commands
| Flag | Description |
|---|---|
--no-color | disable color output |
--verbose | verbose output |
-f, --force | force operation without prompts |