【发布时间】:2010-07-30 04:59:28
【问题描述】:
我的一个同事有一个我想克隆的远程 git repo,他提供了一个 git@his.server.com:443/repo.git 的 url。在这种情况下,ssh 在端口 443 上列出。
我尝试通过执行git clone git@his.server.com:443/repo.git 进行克隆,但操作超时。我曾认为 git 默认使用 ssh 作为其协议,但我不确定为什么这不起作用。
如果我像git clone ssh://git@his.server.com:443/repo.git 这样在url 中明确指定ssh,它就可以正常工作。
这是预期的 git 行为吗?为什么第一个网址不起作用,而第二个网址起作用?
【问题讨论】: