I am really disappointed in using the git submodule function. Either I still do not understand, or it just does not work, as I expect it to. The following design situation is provided:
Project | .git | projsrc | source (submodule) | proj.sln
In this scenario, source points to another repository containing common source data in all of our projects. There are many events occurring in the source , as well as in projsrc . Unfortunately, the Project points to some fixation of the original submodule, and not to the actual HEAD. This is the usual git behavior, as I understand it.
I already found out that
git submodule update
just get the version of the submodule that was transferred along with the main project. Nevertheless, I would really like you to always be aware of the development of submodules, but do not know how to do it correctly. So my question is:
Is it possible to attach the Project to the HEAD submodule, regardless of whether it violates the compilation of the project or not. I just don't want to always go into a submodule directory and pull git there. Since I think that I can lose my changes in the submodule directory, because it is simply related to commit and not really a single branch or so.
Consider the following restrictions :
- The developers of our group are not familiar with all VCS. We used to use a really huge svn repository before, without any external repo functions at all.
- We are working on Windows
- A click'n'forget solution would be better, since most project participants were afraid to use the command line interface :)
cgart source share