Git Submodules: It is possible to provide both https and ssh access to submodules?
Some people might prefer to use https and some might only be able to use ssh (e.g. because they are behind an ssh tunnel).
Is it possible to provide both options of fetching submodules?
One Solution collect form web for “Git Submodules: It is possible to provide both https and ssh access to submodules?”
You can use relative URL when referencing a submodule.
For example if you have an application repository:
and a library repository:
then you can reference the library as
../lib/some-library.git instead of the full URL.