Git repository within Git repository [duplicate]
This question already has answers here : How do I work with a git repository within another repository? (4 answers) I have a main git repository A and we are using sources out of another git repository B in a subdirectory of our main project. Now it would be good to have the B repository checked out within the A repository in this used subdirectory. If someone else then clones the repository of course he should get our main repository A and within that automatically the B repository. Let me visualize the directory structure: + main_repository - the root directory of the main Repository + src -