Reputation: 1
As per the requirement we have got mutliple repo containing many projects and have merged these into single repo which contains all the projects which exists in multiple repo. I have done merged these into single repo and it contains all the commits till the merged date. After the merge ,Single repo doesn't contain those new commits present in multiple repo.
My question is
1)How can we pick the latest commits from multiple repo
2)If it is possible to pick those commits how it could be merged to single repo
Have tried with cherry-picking but it creates the new commit id which differs from that of multiple repo commit id that should not happen in our case.
Upvotes: 0
Views: 32
Reputation: 1777
I would advice you to use submodules. But your "final" repo will be updated with the new commits on sub repos so I don't know if it's what you want to do.
I may have another solution :
git init
git remote add origin1 http://myurl.com
git checkout origin1/master -- .
I'm not sure if it will work but I will definitely try out
Upvotes: 1