Git fetch / pull / clone挂在接收对象上 [英] Git fetch/pull/clone hangs on receiving objects

查看:499
本文介绍了Git fetch / pull / clone挂在接收对象上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  remote:计数对象:6666,完成。 
remote:压缩对象:100%(5941/5941),完成。
接收对象:23%(1534/6460),11.68 MiB | 23 KiB / s

它会挂起。 23%/数量的物体不是给定的,它看起来像从单个数字到60多个不等。另外下载的速度下载冻结 - 它不是像它慢慢爬向零。



我坐在旁边的人没有问题,所以它不是路由器问题。我们使用beanstalk作为我们的工作库,但是我从beanstalk和github中得到了这个问题(尽管偶尔看起来github会完成)。

这个问题似乎只是在升级到Mountain Lion并更新Xcode后才出现。我已经擦了git(包括XCode的),并尝试用自制软件安装它。这是行不通的,所以我删除了它,并用他们提供的Mac安装软件包进行了尝试,这也没有解决问题。

Beanstalk为git存储库提供了SSH URL,但是我通过SCP或SSH连接到我已经完成的服务器没有任何问题。

这会毁掉我的工作流程,所以任何帮助都会非常感谢!

解决方案

VMware on NAT 对我有这个问题。将其更改为桥接(复制状态)解决了问题。


When fetching or pulling from git repositories, or cloning a repository, I get to this point:

remote: Counting objects: 6666, done.
remote: Compressing objects: 100% (5941/5941), done.
Receiving objects:  23% (1534/6460), 11.68 MiB | 23 KiB/s  

And it hangs. The 23%/number of objects isn't a given, it ranges from single digits to up to the 60s, it seems. Also the speed for download listed freezes -- it's not like it slowly crawls down towards zero.

The guy I sit next to has no issues, so it's not a router problem. We use beanstalk for our work repositories, but I have the issue from beanstalk and github (although occaisonally it seems a github one will finish).

The problem has only seemed to crop up since upgrading to Mountain Lion and updating Xcode. I've wiped git (including XCode's) and tried installing it with homebrew. That didn't work, so I removed it and tried with their provided Mac installation package which also didn't fix the issue.

Beanstalk provides SSH urls for the git repository, but I've had no issues with connecting via SCP or SSH to servers that I've done work on.

This is killing my workflow so any help would be much appreciated!

解决方案

VMware on NAT had this problem for me. Changing it to Bridged (replicate the state) fixed the issue.

这篇关于Git fetch / pull / clone挂在接收对象上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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