A Git submodule is a nested repository. You might be interested in creating such repository if you have a multiple repos with a shared folder of code. You could copy and paste that code between repos when there is a change, but a shared repo set as a submodule could help keep it in sync. …