

$ 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.
#Git add remote submodule update#
So first of all you need to update your fork to get all upstream changes.During development of DbLocalizationProvider I had single repository in GitHub containing more that one package as result of the build. Not any future commits which you might not know of. The revision the submodule repo had when you added it. This is necessary because you always want to have a specific revision when cloning your main repo. This cannot be done by a simple “git pull” because git submodules are only pointers to a specific commit revision in another repo and therefore have a detached HEAD.
#Git add remote submodule code#
If the maintainer updates his code you can then merge/update everything you want into your fork and keep your patches that didnt make it upstream.įrom time to time you then need to update the submodule in your projects because the upstream maintainer has added a feature or version you want to have. The benefits are that you can modify the fork to your needs and even open pull requests to the maintainer. Git submodules are a great way of adding 3rd-party libraries/modules to your project.īasically you are forking the 3rd-party repo and add your own fork as submodule to your projects.
