Dotty worktree end
dotty worktree end¶
Remove a worktree, its agent/* branch, and its tmux session.
Synopsis¶
Tear a worktree down: kill the tmux session named after it, remove the worktree from its repository, and delete its branch — but only an agent/* branch, so a manually checked-out branch survives. Uncommitted or unpushed work is reported first; a worktree that is already gone exits quietly.
path falls back to the WorktreeRemove hook JSON on stdin ({"worktree_path": ...}).
Examples¶
dotty worktree end ~/Repos/dotty/.worktrees/dotty-fix-1
echo '{"worktree_path":"..."}' | dotty worktree end # hook form
Options¶
Options inherited from parent commands¶
SEE ALSO¶
- dotty worktree - Manage agent git worktrees.