git-clone内存分配错误 [英] git-clone memory allocation error

查看:90
本文介绍了git-clone内存分配错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 致命:内存不足,malloc失败
致命:index-pack死于错误代码128
'user @ server:git'的fe​​tch-pack失败。

我能够在本地计算机上成功执行克隆,但当我尝试克隆时到另一台服务器。

这个整个git的东西还有点新,所以任何帮助将不胜感激。 :)

解决方案

您的存储库中是否有大文件(例如日志文件)?

显然,您的存储库太大而无法在硬盘上检索。



您可以执行以下两项操作:


  • 检查大文件并删除它们(如果它们不是有用的)(不仅可以通过提交,还可以通过修改历史记录。如果您的大文件仍在我们的存储库中,它不会变小。

  • 执行 git gc ,它会自动清理未使用的文件并压缩存储库。


I'm trying to run git clone and am receiving the following error:

fatal: Out of memory, malloc failed
fatal: index-pack died with error code 128
fetch-pack from 'user@server:git' failed.

I was able to successfully do a clone on my local machine, but it's failing when I try to clone to another server.

Still somewhat new to this whole git thing, so any help would be greatly appreciated. :)

解决方案

Do you have big files in your repository (like log files for example) ?
Apparently, your repository is too big to be retrieved on your hard drive.

There are two things you can do :

  • Check for big files and remove them if they're not useful (not only by committing. But also by modifying your history. If you still have your big files in our repository, it won't be smaller.
  • Do a "git gc". It'll automatically cleanup unused files and compress the repository.

这篇关于git-clone内存分配错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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