'How to structure git submodules

I have a project in GitHub which has 10 repos. Repo1 has no dependency. Repo2 depends on repo1, repo3 depends on repo1 and repo2. Finally repo 10 depends on repo1-9. How to make use of submodules in this case ? Are there better alternatives in this case



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source