

You want to "lock down" yourself to specific version of the submodule. As you would like to refer to particular commit and not tracking branch, which is essentially a moving target.

Meaning that when working with submodules - this rare git case becomes norm. NB! This is very important to remember that submodule linking sets included submodule into detached HEAD state. gitmodules file (in root folder of parent repository). Information about just added submodule is written in. Later we can repeat the same exercise for EPiServer repository as well. This will link main package current HEAD to the aspnet repository under lib/localization-provider resulting content of the main repository becoming as part of (submodule) aspnet repository. $ git submodule add lib/localization-provider Keep in mind that linking is possible by pointing to some directory under which linked repository content will be "cloned". This is achievable by "linking" main repository content into aspnet. We need to " include" projects from main repository into aspnet repository. Then I would be able to debug it through, change and adjust on-demand if needed, etc. Now tricky part is that I would like to include source from main repository as part of the solution - like normal projects. Create Repo With SubmoduleĪfter we have main module repository available, we can create new one for Asp.Net Mvc ( aspnet) packages. $ git init mainĪfter whole code-base has been moved in, we can push it out to GitHub. We create repository for localization provider core/common module.

Later realized that there is actually not so much to do to add support for Asp.Net Mvc (.NET Framework) applications and later also for. Initially there was just a EPiServer package to add support for database driven localization resources. During development of DbLocalizationProvider I had single repository in GitHub containing more that one package as result of the build.
