MS Visual Studio + gitolite或github通过ssh [英] MS Visual Studio + gitolite or github via ssh

查看:165
本文介绍了MS Visual Studio + gitolite或github通过ssh的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

我可以克隆commit和通过控制台工具和git-extension GUI推送我的项目(git@server.example.com:testproject)



但是我无法从团队资源管理器在MSVS中。即使我手动克隆(通过控制台工具)并添加为MSVS团队资源管理器的本地存储库,我也无法提交或推送,因为


发生错误。详细消息:libgit2引发了一个错误。类别=净(错误)。
此传输未实现。抱歉


我发现的所有相关内容都是关于TFS或本地git集成的。

与github项目相同。



它甚至可以使它工作吗?通过一些控制台钩子或类似的东西?

解决方案

团队资源管理器使用与Visual Studio 2013一起添加的Git集成。
请参阅所提及以下 libgit2 即将开始(2015年第4季度)(针对VS 2015),并在项目中使用ssh支持 PROGrand / git2-msvstfs-ssh-patch


这个针对' libgit2 '的补丁允许使用SSH公钥/私钥对在Visual Studio 2015中的ssh存储库(如gitolite)


I have MSVS 2013 + git 1.8.4 + git-extensions 2.47.3 on local machine and gitolite 2.3-1 on remote server

I could clone commit and push my project (git@server.example.com:testproject) by console tools and via git-extension GUI

But I couldn't do the same from "Team Explorer" in MSVS. Even if I clone it manually (by console tool) and add as local repository to MSVS Team Explorer, I can't commit or push, because

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

Everything I found related is about TFS or local git integration.

Same with github project.

Is it even possible to make it work? By some console hooks or something like that?

解决方案

The "Team Explorer" uses the Git integration added with Visual Studio 2013.
See "Clone a remote Git repository from a third-party service".

With that Git native integration in Visual Studio, only https is supported.
Ssh isn't yet supported.

This MSDN blog post stated in October 2013:

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, you’ll get the message "This transport isn’t implemented. Sorry." (This message comes from the libgit2 library.)
I don’t have a timeline for when support for SSH remotes might be implemented in Visual Studio.


Update Oct. 2015:

However, as Vladimir Koltunov mentions below, libgit2 is starting (Q4 2015) to be built (for VS 2015) with ssh support in project PROGrand/git2-msvstfs-ssh-patch.

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

这篇关于MS Visual Studio + gitolite或github通过ssh的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆