简体   繁体   English

无法克隆git repo

[英]Can't clone git repo

When I try to do a git clone with the following command: 当我尝试使用以下命令进行git clone时:

git clone git@git.skycareehr.com:skycare/skycare.git skycare

I get the following error message: 我收到以下错误消息:

Initialized empty Git repository in /media/psf/Sites/skycare/.git/
fatal: Unable to create temporary file: Cannot allocate memory
fatal: index-pack failed
[root@centos Sites]# remote: Counting objects: 67251, done.
remote: Compressing objects: 100% (24305/24305), done.

As you can see, the compressing goes to 100% but the repo doesn't actually get cloned. 如您所见,压缩率达到100%,但实际上并未克隆存储库。

I'm on a CentOS virtual machine on a Mac OSX host system and this command has worked before. 我在Mac OSX主机系统上的CentOS虚拟机上,此命令以前曾起作用。 I've installed a fresh version of git using the command yum install git , but I'm still getting the error. 我已经使用yum install git命令安装了新版本的git ,但是仍然出现错误。

This occurred for us after a Parallels (9) update. 在Parallels(9)更新之后,这发生在我们身上。 Nothing seems to fix the issue short of a downgrade. 除了降级,似乎没有什么可以解决这个问题的。 We tried updating the parallels tools, changing the OS versio, starting with fresh VMs -- but nothing worked short of a downgrade. 我们尝试从新的VM开始更新并行工具,改变OS版本,但是降级没有什么用。

Note that in our case, the issue only occurs when cloning on to the shared host filesystem (which we must be able to do). 请注意,在我们的情况下,仅当克隆到共享主机文件系统时才发生此问题(我们必须能够做到)。 This fails after the update with Ubuntu versions 12.04 up to 13.10. 在Ubuntu 12.04到13.10版本之间更新后,此操作失败。

Sadly, Parallels has been astoundingly sloppy with the shared host FS. 令人遗憾的是,Parallels共享主机FS令人吃惊。 We may be forced back to virtual box at this rate. 我们可能会以这种速度被迫回到虚拟盒子。

One other possibility is to just set up an NFS export on your host and use that to share files rather than bothering with the shared filesystem. 另一种可能性是仅在主机上设置NFS导出并使用它来共享文件,而不用费心共享文件系统。 This seems to work ok for us. 这对我们来说似乎正常。 Here's a gist that shows how to set it uo: 这是说明如何设置uo的要点:

https://gist.github.com/mowings/9782264 https://gist.github.com/mowings/9782264

Parallels has released an update which fixed this issue for me: Parallels发布了一个更新程序,为我解决了此问题:

Official Parallels Support Post 官方Parallels支持文章

Make sure you've got the latest Parallels Build: 9.0.24237. 确保您拥有最新的Parallels Build:9.0.24237。 Instructions for updating Parallels can be found here: How to get the latest build of Parallels Desktop for Mac . 可以在这里找到有关更新Parallels的说明: 如何获取Mac的最新版本的Parallels Desktop

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM