gh-stack - Manage stacked branches and pull requests
Manage dependent branch stacks and their GitHub pull requests with the gh-stack GitHub CLI extension.
Tags
Updated: 2026-12-02Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Create branch stacks
- Add stack branches
- Push stacked branches
- Rebase stack branches
- Sync dependent branches
- Navigate stack layers
- View stack status
- Submit stacked pull requests
- Link external branches
- Tear down stacks
Inputs
- GitHub repository
- Branch names
- Stack dependency order
- Git changes
- Remote name
- Pull request or branch identifiers
Outputs
- Stacked branches
- GitHub pull requests
- Stack status data
- Updated branch relationships
- Rebased branches
Requirements
- GitHub CLI v2.0 or later
- Authenticated GitHub CLI
- gh-stack extension
- Git repository
- Non-interactive command execution
- Configured Git remote
