Migration from SVN to GIT, suggest, please, repository structure

Deadly 提交于 2020-01-03 00:45:28

问题


Currently we are using SVN and we have very specific repository structure. Project contains many modules, and we are building app for concrete customer using that modules and main solution file specific for engagement. So repository for app contains external references to modules (we prefer to use latest version in most cases) and app project. Structure is not very convenient. We want to migrate to GIT. Could you recommend structure in git to satisfy our needs and goal to build apps as lego blocks?


回答1:


Each module can be converted in a separate Git repository.

You can then reference those modules as git submodules, and make sure each submodule follows a branch, which makes updating them in the parent repo very easy:

git submodule update --remote

The other approach would still uses one git repo per modules, but reference them as subtree (also presented here).
You can see an example in one of my previous answer.



来源:https://stackoverflow.com/questions/28471971/migration-from-svn-to-git-suggest-please-repository-structure

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