Manage bulk pull requests
Developed by GitHub, gh-stack is a command line tool that makes it easy to create and manage stacked pull requests during the software development process. It aims to speed up the review process by dividing complex code changes into small and independent parts.
Updates
- October 27, 2026: Stars 1,643 → 1,723, latest release v0.3.0 (October 26, 2026).
- October 9, 2026: Stars 1,609 → 1,643, latest release v0.2.1 (October 9, 2026).
- October 3, 2026: Stars 1,432 → 1,609, latest release v0.2.0 (October 2, 2026).
- September 3, 2026: Stars 911 → 1,432, latest release v0.1.1 (September 2, 2026).
What you get
- Breaks large code changes into small and manageable pieces
- Automatically organizes dependencies between pull requests
- Facilitates rebase operations to keep branches within the stack up to date
Installation
gh extension install github/gh-stackgh skill install github/gh-stackRunning it
gh stack initgh stack add api-endpointsIf you don't write code
I use the gh-stack tool to create stacked pull requests on GitHub. Include my existing working branches in a stack structure, manage dependencies between branches, and push the stack to GitHub to speed up the code review process.
Repository: https://github.com/github/gh-stack. Follow the official instructions in the README of this repository for setup and execution.
Before starting, check which OS we are on and if the necessary tools (e.g., Python, Node.js, Git, Docker) are installed. Install any missing ones step-by-step according to this system.
Create a new, empty folder to work in. Do not touch any files outside this folder and do not delete anything. Tell me what you are going to do in one sentence before running each command.
Tell me what I should see on the screen at the end of each step. If an error occurs, I will paste the error message to you exactly as it is, and we will fix it together.
Related dictionary terms
Links
TreScout did not build this tool · we found it in GitHub trends and wrote it up. This page describes the repository as of 2026-08-02: The star count and our text belong to that day, the repository may have changed since. Check the repository link for the current state. The introductory text was prepared with AI from the repository's own documentation, and this page was machine-translated from the Turkish original · the Turkish version prevails.