I have two repositories, let's say Repo A and Repo B with the structures as shown below:
Repo A (there are many files in each repo. I am just showing 2 files for example):
  |
  |
  |---Test1.cs  (It has some changes made by X Developer)
  |---Test2.cs  (It has some changes made by X Developer)
Repo B:
  |
  |
  |---src
       |
       |
       |---Test1.cs  (It has some changes made by Y Developer)
       |---Test2.cs  (It has some changes made by Y Developer)
I want to merge (or rebase) of files from Repo A to Repo B/src without loosing history. After the merge, when I view history, I want to see both Developer X and Y changes. Is this possible? If yes, please guide me how to do this.
I have looked other SO posts and tried adding remote repo...etc. But those are not covering this type of scenario. My GIT version is 2.21.0.
 
    