Stacked pull requests on GitHub: slicing large changes into reviewable layers
A stack is an ordered chain of pull requests where every layer builds on its predecessor and only the foot of the chain touches main. GitHub supports this natively since 30 July 2026. A complete tutorial covering gh stack, the cascading rebase and the condition that comes with it.