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

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

问题描述

当从 git 存储库中获取或拉取,或克隆存储库时,我到了这一点:

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  

它挂了.对象的 23%/数量不是给定的,它的范围从个位数到 60s,似乎.此外,列出的下载速度会冻结——它不像是缓慢地向零爬行.

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.

我旁边的那个人没有问题,所以这不是路由器的问题.我们将 beanstalk 用于我们的工作存储库,但是我遇到了 beanstalk 和 github 的问题(尽管有时似乎 github 会完成).

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).

自从升级到 Mountain Lion 并更新 Xcode 后,问题似乎才出现.我已经擦除了 git(包括 XCode 的)并尝试使用自制软件安装它.那没有用,所以我删除了它并尝试使用他们提供的 Mac 安装包,但也没有解决问题.

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 为 git 存储库提供了 SSH url,但是我在通过 SCP 或 SSH 连接到我已经完成工作的服务器时没有遇到任何问题.

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!

推荐答案

NAT 上的 VMware 给我带来了这个问题.将其更改为 Bridged(复制状态) 解决了该问题.

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天全站免登陆