Merge 2 Different git Repos

别等时光非礼了梦想. 提交于 2019-12-06 03:47:10

Submodules are not the best for frequent commits. In my project I use git-slave, which is a little out of date, but suits all my needs :)

easoncxz

Check out "How do you merge two git repositories?". In short: Learn about "submodules" and "subtree merging".

My suggestion: read the git book:

YuriAlbuquerque
$ git remote add repo-a <url a>
$ git remote add repo-b <url b>
$ git fetch repo-a
$ git fetch repo-b
$ git checkout repo-a/master
$ git checkout -b merging-branch
$ git merge repo-b/master
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!