- A Git repository within another parent repository. Use cases for submodules include breaking code bases up into several repositories, and reusing submodules in multiple repositories. Using a submodule works by adding information about the respective source repository, i.e., it does not require to duplicate code.