Due to the workflow of my employer, I am in the situation where I have a parent commit with several child commits, with each child commit being the tip of a different branch:
┌─── b <- branch1
├─── c <- branch2
├─── d <- branch3
... ─ a ── e <- branch4
I want to end up in the following state:
┌─── b <- branch1
├─── c <- branch2
├─── d <- branch3
... ─ a ── e <- branch4
└─── b'─ c'─ d'─ e' <- branch5
Where the primed commits are clones. The order of these commits is not important, and I can manually resolve commits as each as applied if necessary.
Is there a way I can do this automatically without just creating a new branch and manually cherry-picking each commit one at a time?