Skip to content
New issue

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

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

Already on GitHub? # 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
area/git Issues heavy on local Git management. 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.

@abhinav abhinav added the enhancement New feature or request label Sep 16, 2024
@abhinav abhinav added the area/git Issues heavy on local Git management. label Feb 1, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
area/git Issues heavy on local Git management. enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants