Hi so this question has probably been asked before but since I am unsure of the terms to use I cannot find the answer. So I have a github repo A which contains data structure classes and is incomplete. I want to access it in repo B and repo C. Is there a way I can go about doing this so that i can keep updating repo A and testing it in repo B and C. Sorry for asking what i assume is a redundant question I am just unsure of what I am supposed to be searching and I keep finding things that are not related or I am not understanding as related.
Asked
Active
Viewed 868 times
-2
-
Git is the tool. Github is the website. You may find submodules to be what you want. https://git-scm.com/book/en/v2/Git-Tools-Submodules – OneCricketeer Oct 19 '16 at 22:47
-
Thanks I am using Github website sorry for the wrong tag – turtle Oct 19 '16 at 22:50
-
Not a problem, just trying to help. – OneCricketeer Oct 19 '16 at 22:51
-
1Possible duplicate of [How do I add a submodule to a sub-directory?](http://stackoverflow.com/questions/9035895/how-do-i-add-a-submodule-to-a-sub-directory) – Dan Mindru Oct 19 '16 at 23:44
1 Answers
2
Check out git submodules. These are basically nested repositories so you can better manage your network/repositories/code.
The link above provides a quick output-oriented guide on how you should go about setting up submodules for a repository.
For a more beginner-friendly tutorial, check out this article instead.

Jerome Indefenzo
- 967
- 6
- 25