关于git:通过ssh的MS Visual Studio gitolite或github

MS Visual Studio + gitolite or github via ssh

我在本地计算机上具有MSVS 2013 git 1.8.4 git-extensions 2.47.3和远程服务器上的gitolite 2.3-1

我可以克隆提交并通过控制台工具并通过git-extension GUI

推送我的项目([email protected]:testproject)

但是我无法通过MSVS中的" Team Explorer"执行相同的操作。即使我手动(通过控制台工具)克隆它,并将其作为本地存储库添加到MSVS Team Explorer,我也无法提交或推送,因为

An error occurred. Detailed message: An error was raised by libgit2. Category = Net (Error).
This transport isn't implemented. Sorry

我发现所有与TFS或本地git集成有关的内容。

与github项目相同。

是否有可能使其正常工作?是通过某些控制台挂钩还是类似的东西?


"团队资源管理器"使用Visual Studio 2013中添加的Git集成。
请参阅"从第三方服务克隆远程Git存储库"。

通过Visual Studio中的Git本机集成,仅支持https。
尚不支持Ssh。

http://i.msdn.microsoft.com/dynimg/IC698706.png

此MSDN博客文章于2013年10月发表声明:

As of this writing, Visual Studio 2013 does not have support for ssh-based remotes.
If you have a Git remote that uses SSH and you try to perform a network operation in Visual Studio, youa€?ll get the message a€?This transport isna€?t implemented. Sorry.a€? (This message comes from the libgit2 library.)
I dona€?t have a timeline for when support for SSH remotes might be implemented in Visual Studio.

2015年10月更新:

但是,正如弗拉基米尔·科尔图诺夫(Vladimir Koltunov)在下面提到的那样,libgit2开始(针对VS 2015)(在VS 2015中)将在项目PROGrand/git2-msvstfs-ssh-patch中使用ssh进行构建。

This patch for 'libgit2' allows usage of SSH public/private keys pair with ssh repositories (such as gitolite) in Visual Studio 2015


作为一种解决方法,我使用git命令提示符(通过在Team Explorer上单击"在操作中打开命令提示符"下拉菜单来调用)。

它已经在git repo目录中打开了,因此推入(在本地提交更改后)与调用命令提示符并执行git push命令一样快,而单击"同步"则不需要太多工作。 :)


对于Visual Studio 2015,可以构建启用SSH的版本。

https://github.com/PROGrand/git2-msvstfs-ssh-patch


当用户将其存储库映射到网络驱动器时,我收到了相同的消息