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

Support excluding/removing specific branches from stacks

Open gincheong opened this issue 7 months ago • 2 comments

Hello,

Is there a way to remove a branch from a stack? I couldn't find a command for it in the current version. (0.0.1)

If it's not implemented yet, it would be great to have something like:

  • gh stack remove <branch-name>
  • gh stack exclude <branch-name>

thanks

gincheong avatar Apr 15 '26 09:04 gincheong

I ran gs add foo decided I didn't want that branch, ran git branch -d foo because I didn't see any corresponding gs command, and now various commands error out (e.g. gs top and gs rebase)

amos-ddir avatar May 04 '26 18:05 amos-ddir

If I delete a branch in a stack, then run gh stack modify, it tells me the stack is out of date and I need to rebase against main first. But gh stack rebase breaks because the branch is deleted! So I'm still stuck

jkjustjoshing avatar Aug 17 '26 18:08 jkjustjoshing