DZone

We use Git submodules to keep a Git repository as a subdirectory of another Git repository.  This is usually done when you have a set of common files you want to refer to in multiple repos.

In my personal experience, I found git submodules especially useful when working with Terraform.

Source: DZone