I have a repository A and B and want to migrate both repositories into C, I tried below steps
git clone --bare <A-url>
cd to the A.git directory
git push --mirror <C-url>
Now C has same copy of A
git clone --bare <B-url>
cd to the B.git directory
git push --mirror <C-url>
Here repository C is having only folders and files from repo B and the content from repository A removed Is there any way to persist/retain the files in repository C ?