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?
Asked
Active
Viewed 46 times
1 Answers
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.