ejoffe / spr

Stacked Pull Requests on GitHub
MIT License
714 stars 65 forks source link

How do I start a new stack? #377

Closed jonathanloske closed 2 months ago

jonathanloske commented 5 months ago

How do I start a new stack? Or do I have a wrong mental model and I shouldn't start a new stack?

Background: I just finished working on a feature and picked up a bug as a next task. The bug fix should not be dependent upon the stack for the feature I worked on and should be mergable independent of how far the feature is along.

PS: Loving Git SPR so far, thanks a lot! ❤️

ejoffe commented 5 months ago

You can work in multiple stacks, just start a new git branch. Each branch is like it's own stack. You can even work on stacks destined to different origin branches. In our case we have release branches, and by setting the upstream of the local branch, you can have one stack point to one release branch and another stack to a different branch.

jonathanloske commented 5 months ago

Thanks, that helps! I feel like it would be useful to include this in the README somewhere, WDYT? I could volunteer to write a section on it 😊

ejoffe commented 5 months ago

Sounds great! Got for it.