DubStack
Commands

dub sync

Synchronize tracked branches with remote refs and optionally restack.

Usage

# Sync current stack
dub sync

# Sync all tracked stacks
dub sync --all

# Non-interactive mode
dub sync --no-interactive

# Force destructive sync decisions
dub sync --force

# Include post-sync restack
dub sync --restack

Flags

FlagDescription
--allSync all tracked stacks
--no-interactiveDeterministic non-interactive mode
--forceSkip prompts for destructive actions
--restackInclude post-sync restack

Sync Behavior

  • Fetch tracked refs from origin
  • Attempt trunk fast-forward (or overwrite with --force)
  • Auto-clean local branches for merged PRs (and closed PRs confirmed in trunk)
  • Reconcile local/remote divergence states per branch
  • Optional restack when --restack is set

Restack

Rebase stack branches onto updated parents:

dub restack

# Continue after resolving conflicts
dub restack --continue

On this page