How to add a virtual commit parent without changing commit id of child ?
Given a git repository (stored in an GitLab-Instance and for some reason on an other server in gitolite - both Servers inhouse) with that structure for public access on GitHub:
o-o-o-o-o-o-o-o-m-o-o-o-o-o-o-o-o-o-o-o-o- origin Master
/ \ \F-o-o-o-o-o-o-o origin feature
o-o-o-o-o-o-o-O origin oldthing
There are some documentations about git rebase
, git replace
, git replace --graft
, git commit --amend
and GraftPoints
: But I am not realy sure about how to use them so that the first commit in feature
(F
) gets a second parent (i.e.) the last commit in oldthing
(O
).
In best case no commit id should change, but it is acceptable if the commit Id for the first commit in `feature' will change.
Any Ideas?