Cygwin“git克隆”给出“远程端意外挂断”对Ubuntu 10.04.1 [英] Cygwin "git clone" gives "remote end hung up unexpectedly" against Ubuntu 10.04.1

查看:368
本文介绍了Cygwin“git克隆”给出“远程端意外挂断”对Ubuntu 10.04.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在找出如何让Eclipse(Windows 7)对我刚刚git迁移的CVS存储库工作,我已经放在gitosis在Ubuntu 10.04.1 LTS主机上。所有软件都安装apt-get(git,gitosis等)。

I am in the process of figuring out how to get Eclipse (Windows 7) working against our freshly git-migrated CVS repository which I have put in gitosis on an Ubuntu 10.04.1 LTS host. All software is installed with apt-get (git, gitosis, etc.).

Eclipse与egit挂起试图退房时,所以我玩命令行客户端。 Cygwin有git和openssh,所以我希望至少工作(然后我们可以使用Eclipse对本地副本)。为了做只有babysteps我克隆gitosis存储库在另一个Ubuntu主机更多的磁盘空间,并尝试克隆它在我的Windows框。

Eclipse with egit hangs when trying to check out, so I am playing with command line clients. Cygwin has git and openssh, so I'd like that to work at least (then we can use Eclipse against the local copy). To do only babysteps I have cloned the gitosis repository on another Ubuntu host with more diskspace, and try to clone that on my Windows box.

我得到以下错误消息困惑我很多:

I get the following error message which puzzles me quite a bit:

tra@TRA /cygdrive/c/Users/tra/git
$ git clone ravn@10.49.160.91:/home/ravn/cvs2git/git00
Cloning into git00...
Enter passphrase for key '/home/tra/.ssh/id_rsa':
remote: Counting objects: 64045, done.
remote: Compressing objects: 100% (17965/17965), done.
fatal: The remote end hung up unexpectedly.98 MiB | 8.21 MiB/s
fatal: early EOFs:  98% (62852/64045), 310.98 MiB | 8.21 MiB/s
fatal: index-pack failed

git是1.7.0.4 Ubuntu框和1.7.2.3在Cygwin。 scp和sftp工作很好。

git is 1.7.0.4 on the Ubuntu box, and 1.7.2.3 in Cygwin. scp and sftp work nicely.

有没有一些Voodoo技巧我需要知道使这项工作?

Is there some Voodoo-trick I need to know to make this work?

推荐答案


  • 首先,您应该将公开的ssh金钥发布到 10.49.160.91:/home/ravn/.ssh/authorized_keys

其次,这种错误通常发生在interop环境中,文件名称相同,但是

您可以检查这里是否有这样的问题。

Second this kind of error usually takes place in an interop environment, with files having the same name but with different case.
Can you check if you have such a problem here.

还必须:

  • set your local (PC) core.autocrlf to false.
  • check that core.ignorecase is set to false (its default value)

作为一个选择(如OPThorbjørn发现的),请尝试从 msysgit version ,基于mingw(而不是与cygwin一起打包的git)

As an alternative (as the OP Thorbjørn found out), try git checkout from the msysgit version, based on mingw (instead of the git packaged with cygwin)

这篇关于Cygwin“git克隆”给出“远程端意外挂断”对Ubuntu 10.04.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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