DubStack
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
FlagDescription
--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 --downstack

Delete

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
FlagDescription
--upstackInclude descendants
--downstackInclude ancestors (excluding root)
-f, --forceForce delete unmerged branches
-q, --quietSkip confirmation prompt

On this page