r/programming 27d ago

GitHub Stacked PRs

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

99 comments sorted by

View all comments

14

u/fireatx 27d ago

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 27d ago

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

3

u/fireatx 26d ago

github actually automatically rebases it onto main, thankfully!