In my git master branch history something like this has happened.
Assume I have progressed up-to a point (A). And I added some commits (say B, C and D) which was merged from another branch.
(A)--(B)--(C)--(D)
Then I understood that I don't want to add them now for some reason and I reverted those. So now,
(A)--(B)--(C)--(D)--(-D)--(-C)--(-B)
Then I have added some other commits. Assume (E), (F), (G).
(A)--(B)--(C)--(D)--(-D)--(-C)--(-B)--(E)--(F)--(G)
Now, I suddenly want that commits (B, C, D) to be merged via that older branch. So that finally it looks,
(A)--(B)--(C)--(D)--(-D)--(-C)--(-B)--(E)--(F)--(G)--(B)--(C)--(D)
But just because it already has the commits (B, C, D) in history, I can't do that. Can someone please tell me that what is the ideal solution here.??
Please don't ask me to revert the reverts or undo the past that I cannot.