DubStack
Guides

Troubleshooting

Common issues and solutions for DubStack.

Common issues and how to resolve them.

Common Issues

ProblemSolution
gh CLI not foundInstall GitHub CLI: cli.github.com
Not authenticated with GitHubRun gh auth login
Branch not part of stackCreate via dub create or run from a tracked branch
Restack conflictResolve files, run git add, then dub restack --continue
Rebase/restack interruptedUse dub continue to resume or dub abort to cancel
Branch not trackedRun dub track <branch> --parent <parent>
Need metadata-only removalUse dub untrack (or --downstack)
Need stack-aware branch deletionUse dub delete with --upstack / --downstack
Sync skipped branchRe-run with --interactive or --force as appropriate
Wrong operation during create/restackUse dub undo (multi-level; pair with dub redo to replay)
PR merge blocked by orderRun dub merge-check --pr <number> and merge previous PR first
Manual merge left stack inconsistentRun dub post-merge

Stale Branch Recovery

When submit or sync gets blocked by stale tracked branches:

# 1) Inspect current health
dub doctor

# 2) Preview stale branch metadata
dub prune

# 3) Remove stale metadata if confirmed
dub prune --apply

# 4) Re-run pre-submit checks
dub ready

# 5) Submit current branch + ancestors
dub submit

State Files

DubStack stores local state in your repo. Nothing is pushed to your remote from these files.

.git/dubstack/
├── state.json
├── undo-log.json
├── redo-log.json
└── restack-progress.json

On this page