This is what I have
RepoA: root ➊ → ⋯ [History A] ⋯ → ➌ RepoB: root ➋ → ⋯ [History B] ⋯ → ➌
where the files (➌) in each repo are now identical, but the histories and roots are entirely unrelated.
This is what I want, but both Git and related queries I've been here and elsewhere seem to be going out of their way to avoid this!
RepoA:
branchA root ➊ → ⋯ [History A] ⋯ → ➌ \ ∙ → ➌ / branchB root ➋ → ⋯ [History B] ⋯ → ➌
merged together into RepoA, keeping the root and history of RepoB separate from that of RepoA, so that when I look at the history of any file, after the merger, it will show separate histories from each branch, and not mangle the two sets of histories together.
It's a mash-up of two separate code-bases. I have many projects like this, not just one or two. Some may eventually come to have many different lines of ancestry, rather than just two. Yet, GitHub seems to be specifically blocking this very situation!