Re:The Git history command deserves more attention
by LtWorf on Tuesday July 14, 2026 @05:45AM
(#48904305)
So git cherry-pick?
Re:The Git history command deserves more attention
by WorldMaker on Tuesday July 14, 2026 @01:28PM
(#48910201)
Fun fact, you can also automate more of that existing workflow with the rebase interactive TODO list. Roughly something like:
pick $ACOMMIT1
edit $ABMIXEDCOMMIT # split out A parts
pick $ACOMMIT2
exec make test # test everything compiles
update-ref bugfix/A
exec git switch --detach main # new branch point
pick $BCOMMIT1
edit $ABMIXEDCOMMIT # split out B parts
pick $BCOMMIT2
exec make test
update-ref bugfix/B
exec git merge bugfix/A
pick $FOLLOWUPCOMMIT
exec make test
update-ref intermingled-branch # or bugfix/C
It's been a while since I've attempted a rebase TODO list that wild, so I may have forgotten something, but rebase interactive is pretty wild what it will let you try to automate.
The existing workflow for that would be (there are several possible workflows, but this is what I would do):