Image 1 / 2
  • In GitHub stacked PRs, merging the top PR also merges the ready PRs below it. Merging in the middle automatically rebases the remaining PRs above it to line them up. Nice ..?
gh stack init --base {baseBranch} {stackedBranch1} {stackedBranch2}
gh stack submit
gh stack view
gh stack sync
gh stack merge
gh stack sync --prune