How to isolate projects/folders with git that are part of a large project?

假如想象 提交于 2019-12-07 03:32:28
VonC

It is best to work with submodules: your main project will have "references" (called gitlink, special entries in the index) to your other repos.

Those repos will be declared in your main project as submodules, but can be used independently by other developers.

Using git submodule add, you can reference a repo located in any Git repo hosting service you want: a BitBucket main repo can reference repos managed by GitHub.
That means that you main project can be private on BitBucket, while the dependencies (the submodules) are public repos on GitHub.

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