gnz*_*lbg 11 git ssh git-submodules
是否可以同时提供对git子模块的https和ssh访问?
有些人可能更喜欢使用https而有些人可能只能使用ssh(例如因为他们在ssh隧道后面).
是否可以提供两个获取子模块的选项?
引用子模块时可以使用相对URL.
例如,如果您有一个应用程序存储库:
git@example.org:project/app.git
http://example.org/git/project/app.git
和库存储库:
git@example.org:lib/some-library.git
http://example.org/git/lib/some-library.git
,然后您可以引用库../lib/some-library.git
而不是完整的URL.