gh-stack icon indicating copy to clipboard operation
gh-stack copied to clipboard

allow to add existing branch to stack

Open da1z opened this issue 7 months ago • 4 comments

i created stack from main to my current branch. but between them i have few branches and i can not find a way to add those branches to stack

da1z avatar Apr 13 '26 18:04 da1z

ok was able to do it with gh stack init --adopt branch-2 branch-1 branch-3 but would be nice to be able to use gh stack add 'existing branch'

da1z avatar Apr 13 '26 19:04 da1z

But this only adds existing branches to a new stack.

I have a use case to add existing branch to existing stack. I believe, we need gh stack add --adopt

singalen avatar Apr 17 '26 21:04 singalen

I think we can do that with gh stack link. This cli tool is, in comparison with graphite, not very user friendly.

henzeb avatar May 06 '26 20:05 henzeb

This has been implemented in #101

gh stack add now supports pulling in existing branches to a stack

skarim avatar May 28 '26 18:05 skarim