【发布时间】:2016-11-17 15:44:28
【问题描述】:
我最近尝试构建一个项目,该项目具有声明为 Github 链接的各种依赖项。这些链接混合了指向我公司的公共 Github 存储库和私有 Github Enterprise 存储库的链接。
一些链接是格式的
https://github.com/project/repo.git
有些是格式的
git@github.com:project/repo.git
这些格式之间究竟有什么区别?哪种格式打算用于什么目的?
【问题讨论】:
-
git:或https:前缀指定方案;见en.wikipedia.org/wiki/Uniform_Resource_Locator。git:方案指示 Git 使用 Git 协议(内置于 Git 本身)。https:方案通过 libcurl 指示 Git 在 SSL 上使用 HTTP。ssh:前缀指示 Git 使用 ssh,user@host:path是ssh://user@host/path的简写。
标签: git github repository