How to modify and submit stacked PRs with the GitHub CLI @GitHub
How to modify and submit stacked PRs with the GitHub CLI  @GitHub
Uploaded August 2026 | Updated September 2026, 2 weeks ago
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. 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: 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: gh.io/subgithub
Blog: https://github.blog
X: twitter.com/github
LinkedIn: linkedin.com/company/github
Insider newsletter: resources.github.com/newsletter
Instagram: instagram.com/github
TikTok: 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. github.com
How to modify and submit stacked PRs with the GitHub CLIFixing accessibility issues on GitHub pull requestsRDT: Exploring the GitHub Copilot AppGetting started with open source contributions for beginnersThe Terminal Live - Day 1 at Microsoft BuildWrite your first prompt in the GitHub Copilot app | Tutorial for beginnersJueves de Quack con BrunoHow to query your Copilot CLI session history | Advanced tips & tricksRevolutionize Data Governance with AI and LLMs - Start it Up WednesdayHow to build custom workflows with canvases in the GitHub Copilot app | Tutorial for beginnersTurning World Cup match data into interactive 3D portraitsRubber Duck Thursday!
GitHub |

How to modify and submit stacked PRs with the GitHub CLI

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER