在Win7上的cygwin git上,我正在尝试与我的linux工作站进行协调。两者都是从同一个上游存储库克隆而来的。首先,我做了一个"git fetch origin",然后尝试从我的工作站获取。
$ git fetch origin
[... all ok ...]
$ git fetch b
scheib@b'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发布于 2011-12-09 00:55:31
Cygwin的ssh.exe有这个错误。用msysgit安装中的ssh.exe替换cygwin的ssh.exe,这个问题就会消失。
发布于 2011-05-13 16:28:53
您是如何创建密钥的?
用cygwin的git还是git bash中的mingw git?
我认为真正的问题是cygwin的ssh在/ .ssh /name/ .ssh中查找用户名,而mingw的git ssh在c:/.ssh/name/.ssh中查找用户名
您的密钥很可能只在其中一个目录中。
您可以尝试使用-i开关告诉cygwin的.ssh使用不同的身份文件,或者将密钥移动到两个目录中,或者在/home/name/.ssh/config中创建一个ssh配置文件。
我创建了一个包含以下内容的配置:
Host github.com
User jerryasher
Hostname github.com
IdentityFile c:/Users/jerry/.ssh/id_rsa鉴于我既可以使用git bash中的mingw git,也可以使用rxvt中的cygwin git与github进行交互。
https://stackoverflow.com/questions/4262453
复制相似问题