Releases: github/gh-stack
v0.0.1
Note
Stacked PRs is currently in private preview. This CLI and the referenced functionality will not work unless the feature has been enabled for your repository.
You can sign up for the waitlist at gh.io/stacksbeta.
gh-stack is a GitHub CLI extension for managing stacked branches and pull requests. Learn more about GitHub Stacked PRs here.
Quick Start
Make sure you have the gh CLI installed first, then run:
gh extension install github/gh-stackYou can optionally set up an alias to use gs instead of gh stack:
gh stack aliasNavigate to your repo and start stacking:
# Start a new stack from your default branch
gs init
# ... make changes, stash, and commit using git
# Add a new branch to the stack
gs add next-branch
# ... make changes, stash, and commit using git
# Push all branches
gs push
# Open a stack of PRs
gs submitFull details of the CLI and available commands here.
Use with Agents
Teach agents how to use the CLI by installing the included skill:
npx skills add github/gh-stackUpgrading
If you already have the extension installed, upgrade to the latest release with:
gh extension upgrade stackFull Changelog: https://github.com/github/gh-stack/commits/v0.0.1