As explained in this blog post github.blog/2016-02-01-working-wit...
Submodules allow you to include or embed one or more repositories as a sub-folder inside another repository.
The article explains very well how to use submodules, maybe this can fit better your needs.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.