Repository A: The old fork we're working on now, but with hundreds of recent commits based on 3-year-old code from B. The history is long gone - it only goes back a few months when the repository was first uploaded to Github.
Repository B: The new, current one we don't have access to. Years of history. Would like to keep updated with it's Master branch when finished.
At some point ~3 years ago, repository A was a fork of B and then never kept up-to-date with B. We'd like to change that. We want to be Repository B with all of our changes from A.
The pseudocode of what I think needs to happen:
- Clone B into a new project with a [Master] branch.
- Make an [Old] branch containing all of A.
- Merge [Old] branch into [Master] branch and fix thousands of conflicts (How would we keep history from A?)
- Set up an Upstream remote for Repo B in order to keep up-to-date from now on.
I'm hoping for some advice, clarification, and/or a translation of the above pseudocode and how it might work.
Thanks!