Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gs branch split prompt which commits (upper or lower) retain the existing branch #411

Open
perspectivezoom opened this issue Sep 16, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@perspectivezoom
Copy link

Assume I have a stack master => featureOne => featureTwo => featureThree

  • If I would like to split up featureTwo into featurePreTwo => featureTwo, gs branch split works great. The command assumes that the topmost set of commits (furthest away from master) will keep the original branch name.
  • If I would like to split up featureTwo into featureTwo => featurePostTwo, I'm in trouble. There is no (easy) way to tell gs branch split that the bottommost set of commits retain the original branch metadata, and to create a new branch from the topmost set of commits.

I have to resort to naming the bottom branch temp, and then use gs branch rename to get my desired stack, but then I also have to gs branch untrack && gs branch track both branches to bust the existing PR references so things are in a good state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants