2010-11-24 88 views
3

从Win7的cygwin git我试图与我的Linux工作站进行协调。两者都是从同一个上游存储库克隆的。首先我做一个“git fetch origin”,然后尝试从我的工作站中获取。git拉和取取失败与“致命:远程端意外挂断”

$ git fetch origin 
[... all ok ...] 
$ git fetch b 
[email protected]'s password: 
remote: Counting objects: 2031, done. 
remote: Compressing objects: 100% (512/512), done. 
fatal: The remote end hung up unexpectedly 
fatal: early EOFs: 23% (182/789) 
fatal: index-pack failed 
+0

请问http://stackoverflow.com/questions/3750222/cygwin-git-clone-gives-remote-end-hung-up-unexpectedly-against-ubuntu-10-04-1帮帮我? (包括使用msysgit而不是cygwin git?) – VonC 2010-11-24 04:55:17

+0

我已经通过使用msysgit和ssh协议解决了这个问题。 – 2012-10-12 18:12:59

回答

-1

您是如何制作钥匙的?

有了cygwin的git或者在git bash中使用了mingw git吗?

我认为,真正的问题是Cygwin的SSH查找/的.ssh在/ home /.ssh和MinGW的混帐SSH查找的.ssh在C:/用户/ /.ssh

您的密钥可能位于这些目录中的一个并且是唯一一个。

你可以试着告诉Cygwin的的.ssh使用不同的身份文件中使用-i选项,或者键移动到这两个目录,也可以创建在/ home /一个ssh配置文件 /.ssh/config。

我创建了一个包含一个配置:

Host github.com 
    User jerryasher 
    Hostname github.com 
    IdentityFile c:/Users/jerry/.ssh/id_rsa 

的,而且是我可以使用从混帐bash或Cygwin的混帐MinGW的混帐从rxvt的与GitHub的互动。

+0

如果键是问题,它将不会连接 – 2011-12-08 16:38:01

0

Cygwin的ssh.exe有这个bug。从msysgit安装中将cygwin的ssh.exe替换为ssh.exe,并且此问题将消失。

相关:Git fatal: remote end hung up

相关问题