如何使用 gitproxy 连接特定远程/域的自定义 ssh 选项?
问问题
274 次
1 回答
0
自定义 ssh 表示类似 的 url myssh:myrepo
,~/.ssh/config
文件中包含以下条目:
Host myssh
HostName aserver.com
User auser
Port aportnumber
所以你可以为那个“域”设置一个 gitproxy :
git config --global core.gitproxy "ssh for myssh"
但这不应该是必要的,因为像 myssh:myrepo 这样的远程 url 无论如何都会被 git 解释为 ssh url。
于 2013-08-05T06:04:15.367 回答