Commands
dub track
Track existing branches, re-parent tracked branches, untrack, or delete with stack-aware expansion.
Track
# Track current branch
dub track
# Track explicit branch
dub track feat/auth-login --parent feat/auth-types
# Repair parent metadata
dub track feat/auth-login --parent main| Flag | Description |
|---|---|
--parent <branch> | Specify parent branch (inferred if omitted) |
If --parent is omitted, DubStack tries to infer a safe default. In interactive shells, DubStack prompts when parent choice is ambiguous.
Untrack
Remove branch metadata from DubStack without deleting local git branches:
# Untrack current branch only
dub untrack
# Untrack explicit branch and descendants
dub untrack feat/auth-login --downstackDelete
Delete local branches with stack-aware expansion and metadata repair:
# Delete one branch (with confirmation)
dub delete feat/auth-login
# Delete branch and descendants
dub delete feat/auth-login --upstack
# Delete branch and ancestors toward trunk
dub delete feat/auth-login --downstack
# Fully non-interactive destructive delete
dub delete feat/auth-login --upstack --force --quiet| Flag | Description |
|---|---|
--upstack | Include descendants |
--downstack | Include ancestors (excluding root) |
-f, --force | Force delete unmerged branches |
-q, --quiet | Skip confirmation prompt |