Skip to content

trackbed:pr:stack

Create and manage GitHub stacked PRs with gh-stack when a change should land as a chain of small dependent PRs.

/trackbed:pr:stack [init [--base <trunk>] <branches...> | submit | sync | merge <pr-number> | adopt [--base <trunk>] <branches...> | status]

Create and manage GitHub stacked PRs with gh-stack v0.3.0 or newer. Build an ordered chain of dependent branches, submit chained draft PRs, make mid-stack edits safely, merge or sync stacks, and adopt existing branch chains. Use when a change should land as a sequence of small dependent PRs instead of one large PR. Requires stacked PRs to be enabled for the repository; degrades to a manual chain otherwise.