The .gitmodules file used to track submodules in the git repository usually has a name for each submodule, for example:
[submodule "my-submodule"] path = foo/bar/my-submodule url = http:
However, I also saw that it was written with a local path duplicated in the name of the submodule:
[submodule "foo/bar/my-submodule"] path = foo/bar/my-submodule url = http:
I have both of these styles in one of my repositories, perhaps by accident, and I'm not sure why they are different.
I would like to make sure that I formulated it correctly. Which one is "correct"? Does it matter? Is the submodule name used for anything other than display?
source share