gh-stack - Manage stacked GitHub branches and pull requests
Manage dependent branch stacks and pull requests with the gh-stack GitHub CLI extension.
Tags
Updated: 2026-12-02Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Create dependent branch stacks
- Add stack branches
- Push stacked branches
- Rebase stack branches
- Sync stacked branches
- Navigate stack layers
- View stack status
- Submit stacked pull requests
- Link externally managed branches
- Rebuild branch stacks
Inputs
- GitHub repository
- Branch names
- Stack layer order
- Git changes
- Pull request information
- Remote name
Outputs
- Git branches
- Stacked pull requests
- Stack status
- Updated branch bases
- Git commits
Requirements
- GitHub CLI v2.0+
- Authenticated GitHub CLI
- gh-stack extension
- Non-interactive command execution
- Configured git rerere
- Configured push default for multiple remotes
