I have the following Git repository topology:
ABF (master) \ D (feature-a) \ / C (feature) \ E (feature-b)
By canceling the feature branch, I expected to reinstall the entire subtree (including child branches):
$ git rebase feature master ABF (master) \ D (feature-a) \ / C (feature) \ E (feature-b)
However, this is the actual result:
C' (feature) / ABF (master) \ D (feature-a) \ / C \ E (feature-b)
I know that I can easily fix it manually by doing:
$ git rebase --onto feature C feature-a $ git rebase --onto feature C feature-b
But is there a way to automatically reinstall a branch, including all its children / children?
git git-rebase version-control branch rebase
Tomasz Nurkiewicz Apr 08 2018-11-11T00: 00Z
source share