<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/github-stacked-prs-a-practical-guide-to-gh-stack-1omernx9k" -->

---
title: GitHub Stacked PRs: a practical guide to gh stack
description: GitHub Stacked PRs allow splitting large features into a chain of dependent pull requests, each focused on one layer (e.g., data model → API → UI). The...
canonical: https://daily.dev/posts/github-stacked-prs-a-practical-guide-to-gh-stack-1omernx9k
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: GitHub Stacked PRs: a practical guide to gh stack | daily.dev
og:description: GitHub Stacked PRs allow splitting large features into a chain of dependent pull requests, each focused on one layer (e.g., data model → API → UI). The...
og:url: https://daily.dev/posts/github-stacked-prs-a-practical-guide-to-gh-stack-1omernx9k
og:image: https://api.daily.dev/og/posts/1oMerNx9k.png
og:image:alt: GitHub Stacked PRs: a practical guide to gh stack
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# GitHub Stacked PRs: a practical guide to gh stack

**[Flavio Copes](https://daily.dev/sources/flaviocopes)** · 17 min read · 0 upvotes · 0 comments

## Summary

GitHub Stacked PRs allow splitting large features into a chain of dependent pull requests, each focused on one layer (e.g., data model → API → UI). The official `gh stack` CLI extension manages the full lifecycle: initializing a stack, adding layers, submitting PRs, navigating branches, rebasing the entire chain after mid-stack changes, and merging partially or fully. Key topics covered include how GitHub's Stack object differs from plain stacked branches, handling cascading rebase conflicts with `rerere`, squash merge behavior and fake-conflict avoidance via `git rebase --onto`, optimizing GitHub Actions CI runs using stack metadata, restructuring a stack with `gh stack modify`, and design principles for choosing good layer boundaries. The feature is currently in private preview.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://flaviocopes.com/github-stacked-prs>

## Similar posts on daily.dev

- [GitHub Stacked PRs](https://daily.dev/posts/github-stacked-prs-ekt9rnyqu) · Hacker News · 2 upvotes · 0 comments
- [GitHub adds Stacked PRs to speed complex code reviews](https://daily.dev/posts/github-adds-stacked-prs-to-speed-complex-code-reviews-ufanab95z) · InfoWorld · 0 upvotes · 0 comments
- [GitHub invokes spirit of Phabricator with preview of Stacked PRs](https://daily.dev/posts/github-invokes-spirit-of-phabricator-with-preview-of-stacked-prs-ybrvrjtnz) · DEVCLASS · 3 upvotes · 0 comments

---

Tags: [#github](https://daily.dev/tags/github), [#git](https://daily.dev/tags/git), [#github-actions](https://daily.dev/tags/github-actions), [#code-review](https://daily.dev/tags/code-review)

[View this post on daily.dev](https://daily.dev/posts/github-stacked-prs-a-practical-guide-to-gh-stack-1omernx9k)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"GitHub Stacked PRs: a practical guide to gh stack","url":"https://daily.dev/posts/github-stacked-prs-a-practical-guide-to-gh-stack-1omernx9k","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/github-stacked-prs-a-practical-guide-to-gh-stack-1omernx9k"},"datePublished":"2026-07-25T17:58:44.874Z","dateModified":"2026-07-27T14:34:45.301Z","description":"GitHub Stacked PRs allow splitting large features into a chain of dependent pull requests, each focused on one layer (e.g., data model → API → UI). The...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/907c6c028f107fad7d0379f1571dde35?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/907c6c028f107fad7d0379f1571dde35?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Flavio Copes","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Flavio Copes","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/1f2dbd275797411bbd37bfdaaf0951a9","url":"https://daily.dev/sources/flaviocopes"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/github-stacked-prs-a-practical-guide-to-gh-stack-1omernx9k","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"github,git,github-actions,code-review","timeRequired":"PT17M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Flavio Copes","item":"https://daily.dev/sources/flaviocopes"},{"@type":"ListItem","position":3,"name":"GitHub Stacked PRs: a practical guide to gh stack"}]}
```

