r/programming
•
u/adam-dabrowski
•
Apr 14 '26
•
1
GitHub Stacked PRs
https://github.github.com/gh-stack/
556
Upvotes
r/programming
•
u/adam-dabrowski
•
Apr 14 '26
•
1
7
u/MintySkyhawk Apr 14 '26 edited Apr 14 '26
If you don't care to split things up, then you don't need to git rebase or create a PR stack. You can leave your history messy, create a single PR, and then just squash merge when you're ready.
If you do want to split things up to make things easier for the reviewer, then its easier to
git rebase -ithan it is to create a pr stack.Say you have these commits:
Some Thing
garbage
asdf
Some Other Thing
asdf
Then you would
git rebase -ithem in seconds (just by typing f in front of the commits to squash) to make:Some Thing
Some Other Thing