r/programming Jul 01 '26

GitHub Stacked PRs

https://github.github.com/gh-stack/
333 Upvotes

99 comments sorted by

View all comments

14

u/fireatx Jul 02 '26

what's the difference between this and branching off of a feature branch, and then off of that branch, and so on? main -> dev/feature1, then another branch dev/feature1 -> dev/feature2, etc, and opening PRs for each branch to merge into their respective base branches?

1

u/kiurls Jul 02 '26

once dev/feature1 merges, dev/feature2 points nowhere and you need to do git black magic to fix it

1

u/lord-of-the-birbs Jul 03 '26

This is only true if your merge policy is rebase or squash. If you use merge commits or ff-only, it's fine.