Slackbot
04/26/2023, 4:15 PMmerrill
04/26/2023, 4:18 PMJack Kenney
04/26/2023, 4:33 PMgt stack restack
seems to break that down?
I do this process manually sometimes because it’s a headache to replay old commits on top of themselves.
The alternative is to just merge in the downstack branch but that feels risky and prone to possibly overwriting new changes in the upstack branch.Jack Kenney
04/26/2023, 4:33 PMJack Kenney
04/26/2023, 4:53 PMVampire
04/26/2023, 5:42 PMEdo Rivai
04/28/2023, 2:47 AMJack Kenney
04/28/2023, 3:47 PMI don’t want to overwrite, because that would eraseb3
I pick rebase, this tries to rebaseMaybe theon top ofb1, b2, b3
b1', b2'
git rebase --onto
solution is what I’m expecting the restack to be doing behind the scenesEdo Rivai
05/01/2023, 4:52 PMrebase --onto
flow, I have to manually define which commits to completely skip, because I understand that b1, b2
is equivalent to b1', b2'
, but I guess maybe git/gt cannot really know that. Maybe it can though... Not sure 😅