gh-stack - Manage stacked branches and dependent pull requests
Manage stacked branches and dependent pull requests with the gh-stack GitHub CLI extension.
Tags
Updated: 2026-11-26Typical Inputs
What this skill does
- Create branch stacks
- Add stack branches
- Rebase stacked branches
- Push stack branches
- Sync stacked branches
- Navigate stack layers
- View stack status
- Submit stacked pull requests
- Link external branches
- Tear down stacks
Inputs
- GitHub repository
- Branch names
- Pull request numbers
- Stack operation
- Remote name
Outputs
- Updated local branches
- Pushed remote branches
- Created or updated pull requests
- Stack status JSON
Requirements
- GitHub CLI v2.0 or later
- Authenticated GitHub CLI
- gh-stack extension
- Git repository
- Non-interactive command execution
- rerere.enabled Git configuration
- remote.pushDefault configuration when needed
