Stacked PR workflow with the Graphite CLI (gt) — create stacks, submit, sync, restack, split/squash/fold, track existing branches, collaborate on shared stacks, configure repo/CI for Graphite, and operate the merge queue.
70
88%
Does it follow best practices?
Impact
—
No eval scenarios have been run
Passed
No known issues
Repair the stack when branches point at stale parent commits. User input: $ARGUMENTS.
gt sync reported "could not restack" for one or more branches.git rebase was run on a tracked branch (avoid this in general).gt ls shows needs restack next to a branch.gt ls to identify branches marked needs restack.gt co <branch> first.gt restack — restack the current stack on its current parents.gt restack -u / --upstack — only branches above the current one.gt restack -d / --downstack — only branches below the current one.gt restack -o / --only — current branch only, leave neighbors.<<<<<<< / ======= / >>>>>>>).gt add . to mark resolved (wraps git add).gt continue -a to finish the restack chain.gt abort to back out — safe to do.gt ls to confirm and consider gt submit --stack -u to update the PRs.gt restack is idempotent — running it on an already-clean stack is a no-op.gt restack from each worktree that owns branches in the stack (Graphite 1.8.4+).