无法使用Git扩展推向库 [英] Unable to push to repository using GIT Extensions

查看:118
本文介绍了无法使用Git扩展推向库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我拉我的头发,现在因为这个原因。我已经下载并安装GIT,做了GIT扩展相同的(因为我们将要使用它的VS2010),和一切工作非常愉快。我提交的修改,然后发现我的团队成员无法从网站上检出。看来,我必须改变我推到服务器。

I'm pulling my hair out right now because of this. I have downloaded and installed GIT, did the same for GIT Extensions (as we're going to be using it for VS2010), and everything worked fine and dandy. I committed changes, then found out my team members couldn't checkout from the website. Appears that I have to push my changes to the server.

所以这里的交易。当我尝试推到github.com网站,我收到以下错误信息:

So here's the deal. When I try to push to the github.com website, I get the following error message:

认证错误
该命令的结果与通常意味着第一个错误
腻子authenticaion剂不running.or正确
私钥(还)没有装。

"Authentication error The command resulted with an error that usually means that th PuTTy authenticaion agent is not running.or that the correct private key is not (yet) loaded.

当按键被装载,就可以preSS重试。
重试'加载SSH密钥'中止'。

When the key is loaded, you can press retry. 'Retry' 'Load SSH key' 'Abort'"

我已经创建了一个SSH密钥,所以我尝试加载它。我可以浏览我的钥匙,这是我做的。我preSS加载,然后重试。然后,出现同样的错误。

I have created an SSH key, so I try to load it. I get to browse for my key, which I do. I press 'Load', then 'Retry'. Then, the same error appears.

好了,这是行不通的。我去FileMenu遥控器 - >腻子 - >启动认证代理。我得到一个错误,它已经在运行,所以应该没事吧。将遥控器 - >腻子 - >生成或进口关键,表明了我,它不具有密钥加载或什么,但我认为这很好,以及随后

OK, so that doesn't work. I go to FileMenu Remotes -> PuTTY -> Start Authentication Agent. I get an error that it is already running, so that should be fine then. Going to Remotes -> PuTTY -> Generate or import key, shows me that it doesn't have a key loaded or anything, but I assume that that's fine as well then.

遥控器 - >管理远程仓库。我能看到我的回购协议的URL,而我的.ssh键的位置。 pressing测试连接给我以下错误:

Remotes -> Manage remote repositories. I get to see the URL of my repo, and the location of my .ssh key. Pressing 'Test Connection' will give me the following error:

使用用户名混帐
致命错误:断开:无支持的身份验证方法

"Using username 'git' FATAL ERROR: Disconnected: No supported authentication methods available"

所以我在这里,我不能推到服务器,因为上述问题。我总能解决我自己的问题或谷歌上找到解决办法,但我在黑暗中离开这里,它只是将无法工作。凡是将帮助我摆脱这种来源$ C ​​$ C管理的灾难将是真棒,因为我只是现在杀死任何人。

So here I am, I can't push to the server because of above issues. I always solve problems on my own or find solutions on Google, but I'm left in the dark here, it just won't work. Anything that would help me get out of this Source Code Management disaster would be awesome, because I could just about kill anyone now.

谢谢!

编辑:我应该注意的问题开始当推告诉我,像无法验证服务器实际上是服务器,因为我不知道该服务器的关键。然后,我尝试排查,导致上面。也许这可以帮助..

I should note that the problems started when the push told me something like 'Unable to verify the server is actually the server, because I dont know the key of the server'. I then tried to troubleshoot that, which resulted in the above. Maybe that helps..

推荐答案

前面,我不知道这有什么关系,但不能伤害的事情。进入插件 - >设置 - > Github上,并输入您的详细信息。我发现这是一片空白那里。怎么解决我的问题是:在那下C的.ssh文件夹:\\用户\\<我的名称> \\ SSH,是我的私有密钥,由腻子程序(.pkk文件)作为生成的。我所做的没有错,我不应该创建一个新的关键。

Up front, I don't know if this has to do with it, but can't hurt to do. Go to Plugins -> Settings -> Github, and enter your details there. I found that it was blank there. What solved my problem is the following: In the .ssh folder that was under C:\Users\<my name>\.ssh, was my private key, as generated by the PuTTY program (.pkk file). What I did there was wrong, I shouldn't have created a new key.

继续前进至&lt; Git的扩展&GT;遥控器 - >腻子 - >生成或导入密钥。现在,转到转换 - >导入密钥。浏览到你的.ssh文件夹,找到id_rsa(它被命名正是在这里,没有扩展名)。选择它,preSS开放。为您的钥匙输入密码(这是Git使用传达给GitHub的服务器,因为它出现的关键)。然后,选择保存私钥,并保存到某个地方(我在的.ssh文件夹一样)。

Go ahead to <Git Extensions> Remotes -> PuTTY -> Generate or import key. Now, go to Conversions -> Import key. Browse to the .ssh folder, and find 'id_rsa' (it was named exactly that here, WITHOUT an extension). Select it, and press open. Enter the password for your key (this is the key that Git uses to communicate to the GitHub server, as it appears). Then, select Save Private Key, and save it somewhere (I did in the .ssh folder).

现在,去和Push更改。 preSS&LT;管理取代。在那里,浏览到新创建的私钥。然后preSS测试连接。这工作对我来说,它说:使用用户名混帐的'\\ n你好VNAME&GT;'等&LT;保存&gt;中,然后打&LT;按取代。然后,它为我工作。

Now, go on and Push your changes. Press <Manage>. There, browse to your newly created private key. Then press Test Connection. That worked for me, it said 'Using username 'Git'\n Hi vname>' etc. <Save>, and then hit <Push>. It then worked for me.

这篇关于无法使用Git扩展推向库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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