When working with stacked PRs, every layer needs to make sense on its own. In this video, learn how to use the GitHub CLI extension for stacked PRs to inspect, reorganize, and submit your code. We demonstrate how gh stack modify allows you to fold redundant layers together and rename them before submitting. Once ready, use gh stack submit to open your pull requests and merge them sequentially on GitHub. https://docs.github.com/en/pull-requests/get-started/stacked-prs-quickstart?utm_source=youtube-cli-demo&utm_medium=social&utm_campaign=stacked-prs-gtm-public-preview-2026 #PullRequest #GitHubCLI #GitHub GitHub Stacked PRs: https://gh.io/stacks — CHAPTERS — 00:00 Why clean up your PR layers? 00:40 Inspecting layers with gh stack view 01:16 Folding and renaming layers with gh stack modify 02:14 Submitting stacked PRs with gh stack submit 02:33 Reviewing and merging stacked PRs on GitHub 03:21 Automatic retargeting and merging to main 03:56 Summary Stay up-to-date on all things GitHub by connecting with us: YouTube: https://gh.io/subgithub Blog: https://github.blog X: https://twitter.com/github LinkedIn: https://linkedin.com/company/github Insider newsletter: https://resources.github.com/newsletter/ Instagram: https://www.instagram.com/github TikTok: https://www.tiktok.com/@github About GitHub It’s where over 180 million developers create, share, and ship the best code possible. It’s a place for anyone, from anywhere, to build anything—it’s where the world builds software. https://github.com
When working with stacked PRs, every layer needs to make sense on its own. In this video, learn how to use the GitHub CLI extension for stacked PRs to inspect, reorganize, and submit your code. We demonstrate how gh stack modify allows you to fold redundant layers together and rename them before submitting. Once ready, use gh stack submit to open your pull requests and merge them sequentially on GitHub. https://docs.github.com/en/pull-requests/get-started/stacked-prs-quickstart?utm_source=youtube-cli-demo&utm_medium=social&utm_campaign=stacked-prs-gtm-public-preview-2026
#PullRequest #GitHubCLI #GitHub
GitHub Stacked PRs: https://gh.io/stacks
— CHAPTERS —
00:00 Why clean up your PR layers?
00:40 Inspecting layers with gh stack view
01:16 Folding and renaming layers with gh stack modify
02:14 Submitting stacked PRs with gh stack submit
02:33 Reviewing and merging stacked PRs on GitHub
03:21 Automatic retargeting and merging to main
03:56 Summary
Stay up-to-date on all things GitHub by connecting with us:
YouTube: https://gh.io/subgithub
Blog: https://github.blog
X: https://twitter.com/github
LinkedIn: https://linkedin.com/company/github
Insider newsletter: https://resources.github.com/newsletter/
Instagram: https://www.instagram.com/github
TikTok: https://www.tiktok.com/@github
About GitHub
It’s where over 180 million developers create, share, and ship the best code possible. It’s a place for anyone, from anywhere, to build anything—it’s where the world builds software. https://github.com