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 November 2026, 3 hours 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 requestsWhats in your tech bag?Write your first prompt in the GitHub Copilot app | Tutorial for beginnersJueves de Quack con BrunoHow to move AI from code completion to agentic workflowsHow to build custom workflows with canvases in the GitHub Copilot app | Tutorial for beginnersTurning World Cup match data into interactive 3D portraitsFix GitHub issues without leaving JetBrains IntelliJ using GitHub CopilotHow to attach images and videos using the GitHub CLIAttach images and videos to issues and PRs with GitHub CLIGitHub Universe 2026 was built different
GitHub |

How to modify and submit stacked PRs with the GitHub CLI

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER