github/gh-stack
原文摘要
GitHub Stacked PRs GitHub Stacked PRs A GitHub CLI extension for managing stacked branches and pull requests. Stacked PRs break large changes into a chain of small, reviewable pull requests that build on each other. gh stack automates the tedious parts — creating branches, keeping them rebased, setting correct PR base branches, and navigating between layers. Installation gh extension install github/gh-stack Requires the GitHub CLI ( gh ) v2.0+. AI agent integration Install the gh-stack skill so your AI coding agent knows how to work with stacked PRs and the gh stack CLI: gh skill install github/gh-stack Quick start # Start a new stack (creates and checks out the first branch) gh stack init # ... make commits on the first branch ... # Add another branch on top gh stack add api-endpoints # ... make commits ... # Push all branches gh stack push # View the stack gh stack view # Open a stack of PRs gh stack submit How it works A stack is an ordered list of branches where each branch builds on the one below it. The bottom of the stack is based on a trunk branch (typically main ). frontend → PR #3 (base: api-endpoints) ← top api-endpoints → PR #2 (base: auth-layer) auth-layer → PR #1 (bas…
📋 本文为 GitHub Trending Daily RSS 的 RSS 摘要原文,未经 AI 整理。完整上下文请以 原文 为准。