Ludovic Fardel
07/10/2023, 8:08 AMgt bc -i someBranch while being on main 🤦
Now all my stacks are based on that someBranch
How do I undo that without going to all stack and gt upstack onto main ?
I've tried gt branch fold but that is not allowed on the trunk branch (makes sense) despite having no commit yet.Pranathi Peri
07/10/2023, 3:55 PMsomeBranch and invoking gt upstack onto main is the solution here I believe...any reason you don't want to do that?Ludovic Fardel
07/14/2023, 8:33 AMPranathi Peri
07/14/2023, 1:59 PMI've trieddo you mean there was no commit onbut that is not allowed on the trunk branch (makes sense) despite having no commit yet.gt branch fold
someBranch yet? in that case could you just gt bdl someBranch after stashing any unstaged changes, then redo the gt bc command?
I had a loooooot of branches on top on main. So I'd have to do what you say a looooot of time.Hm I'm not sure I understand - given you have
main -> someBranch -> A -> B -> C -> D -> ..., checking out A and doing gt upstack onto main would result in main -> A -> B -> C -> D -> ... and main -> someBranch and wouldn't affect any other branches you have on top of mainLudovic Fardel
07/17/2023, 8:51 AMmain
|-A
|-B
|-C
|-...
|-Z
Then while on main I did gt bc -i OOPS and get
main
|- OOPS
|-A
|-B
|-C
|-...
|-Z
There is no commit on OOPS yet. I want to get rid of it and go back to the previous state.