How to create, review, and merge stacked PRs on GitHub | GitHub Checkout

Sameen Karim demonstrates GitHub’s stacked pull requests workflow, showing how to split large feature branches into smaller PR layers, work with stacks from the GitHub CLI using the gh-stack extension, and merge an entire stack efficiently while using Copilot to help generate tests.

Overview

This episode of GitHub Checkout introduces stacked PRs: a way to break a large change into multiple small pull requests that build on top of each other (a “stack”), making review and iteration easier.

Key things covered:

Quickstart documentation

Topics and flow (from the video chapters)

Introduction to stacked PRs

Breaking down large changes

Installing gh-stack

Initializing and navigating stacks

Reviewing changes in the terminal UI

Using Copilot inside a stack

Submitting stacked PRs

Merging a full stack

Feedback and what’s next