I\'m new to Git. Lets say, I have two git repositories that have the same library added as submodule:
/home/projects/project1/library_XYZ
/home/projects/proj
I chose for a somewhat easier method (imho):
I set up the shared submodule as followed:
For all projects sharing this submodule:
Sidenote: This does not seem to work fine with Sourcetree. For some reason Sourcetree does not get the reference to the project right and always assumes that files are deleted (due to step 5). It works flawlessly using the command line though, which leads to me to believe that the setup is correct, but Sourcetree is bugged.