VS2015 对 git 客户端 ssh 协议的支持

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/30842050/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 11:07:13  来源:igfitidea点击:

VS2015 support for ssh protocol in git client

gitsshvisual-studio-2015

提问by Nick D

VS2013 had no support for ssh protocol on remote Git repositories. I have read a few articles where the underlying C lib that the git client relied on has now had ssh support added and thus VS2015 hopefully now supports it too.

VS2013 不支持远程 Git 存储库上的 ssh 协议。我读过几篇文章,其中 git 客户端所依赖的底层 C lib 现在已经添加了 ssh 支持,因此 VS2015 现在希望也支持它。

Does anybody know if SSH is supported and if so, what is the format for the URL for the remote repository since attempting with ssh://does not work?

有人知道是否支持 SSH,如果支持,远程存储库的 URL 格式是什么,因为尝试使用ssh://不起作用?

Unfortunately we have to use ssh protocol for connection to this private git repository.

不幸的是,我们必须使用 ssh 协议来连接到这个私有 git 存储库。

回答by VonC

As mentioned in "Git support for Visual Studio - Git, TFS, and VS put into Context", Visual Studio uses libgit2for Git support.

正如“ Visual Studio 的 Git 支持 - Git、TFS 和 VS 放入上下文”中所述,Visual Studio 使用libgit2来支持 Git。

And libgit2 only got ssh support in May 2013 (PR 1558, libgit2 v0.19.0+), a bit late for VS 2013.

而 libgit2 仅在 2013 年 5 月(PR 1558libgit2 v0.19.0+)才获得 ssh 支持,对于 VS 2013 来说有点晚了。

VS2015 should include a more recent version of libgit2, but ssh support wasn't yet planned.
See "Visual Studio 2015 CTP 6 and Team Foundation Server 2015 CTP Released".

VS2015 应该包含更新版本的 libgit2,但尚未计划 ssh 支持。
请参阅“ Visual Studio 2015 CTP 6 和 Team Foundation Server 2015 CTP 发布”。

Saeed Noursalehi [MSFT] 4 Mar 2015 4:45 PM #

We have no immediate plans to support SSH

Saeed Noursalehi [MSFT] 2015 年 3 月 4 日下午 4:45 #

我们没有立即支持 SSH 的计划

There is an issue pending.

一个问题未决

This discussion has been gaining more steam internally.
I don't have a date yet, but it's something we'll take a hard look at in our next round of planning.

这种讨论在内部获得了更多动力。
我还没有约会,但我们将在下一轮计划中认真考虑这一点。