Skip to content
Discussion options

You must be logged in to vote

There are two slightly different cases here.

If you only need a new empty layer below the current bottom branch, recent versions have gh stack modify. Put the cursor on the bottom branch, press i to insert below it, then save with Ctrl+S and run:

gh stack submit

For the actual case you described—splitting the commits of an existing bottom PR—the documented limitation is that modify cannot split a branch. You still need to create the split branches in Git first, then rebuild the stack from those existing branches:

gh stack unstack
gh stack init new-bottom old-bottom
gh stack submit

init can adopt existing branches. So your delete/recreate workaround was basically the right approach for a r…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ajilani
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants