I have a similar problem as the one in this question, but with a fundamental difference:
We got the code from a client, for evaluation and start working before signing contracts. They gave us pure code, no git repo. We created a git repo from it and used it for some time.
As the project got the go-ahead, we got access to their git repo for that project. That code has evolved as well. I am supposed to create a new branch on their repo and rebase our work into that new branch.
Reading the aforementioned question, I learned about graft, where a repo B can have a parent repo A by using graft
to tell that the base of B is some commit of A. But in my case, I don't know which commit of A (their repo) is the base of B (my repo).
It's a very odd situation, where two repos can be considered different - since I don't know the commit that could be the parent of the second, but the changes in the second should be rebased to the files in the first.