Git子模块:可以提供对子模块的https和ssh访问吗?

gnz*_*lbg 11 git ssh git-submodules

是否可以同时提供对git子模块的https和ssh访问?

有些人可能更喜欢使用https而有些人可能只能使用ssh(例如因为他们在ssh隧道后面).

是否可以提供两个获取子模块的选项?

Jos*_*ner 9

引用子模块时可以使用相对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.