Add multiple project in one repository Github

百般思念 提交于 2019-12-06 11:19:40

Try, from the command line, in a fresh clone of your main repo (assuming your multiple projects are all individual git repositories):

 git clone /url/of/main/repo
 cd repo
 git submodule add /url/of/project1
 git submodule add /url/of/project2
 git submodule add /url/of/project3
 git commit -m "Add multiple projects"
 git push

This uses git submodules in order to record references to those projects in your main repository.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!