gh-stack is a GitHub CLI extension for stacked branches and pull requests. A stack is an ordered chain of branches rooted on a trunk, where each branch has one PR based on the branch below it, so a reviewer sees only that layer's diff. prints a stack trunk-first, left to right: Left is the bottom , right is the top . is based on and merges first; merges last. moves toward the top, away from trunk; moves toward it. Foundational work belongs at the bottom, code that depends on it above. For how to choose the layers, read . Setup Requires Git 2.36+ and an authenticated GitHub CLI. Non-interactiv…