I'm improving some legacy codes, and I use git to handle versions. And I found another branch of the SAME legacy codes, so I want to merge it to my codes. The question is: the initial commits of these two versions are different, so I can't simply rebase in git.
NOW:
(origin) -- (untracked modifications) -- my tracked improvements
\- (other untracked modifications) --some other tracked improvements
NEEDED:
(origin) -- some other tracked improvements -- my tracked improvements
As in the graph, the two branches are in 2 individual repositories.
I think what I need maybe just import all the changed into another new repository, but I don't know how.