Git Init --Bare Error - 致命:内存不足? mmap失败:没有这样的设备 [英] Git Init --Bare Error - fatal: Out of memory? mmap failed: No such device

查看:1240
本文介绍了Git Init --Bare Error - 致命:内存不足? mmap失败:没有这样的设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在初始化裸存储库时得到了这个结果,尽管我的远程机器上有大约1GB的RAM。我也看了一下 git add error:致命的: malloc,内存不足,但它并没有真正的帮助。



我不明白为什么会创建这个错误,这似乎很奇怪。为什么会发生这种情况?

解决方案



请参阅 http://www.bitchx.com/log/git-f/git-f-20-Mar-2010/git-f-20-Mar-2010 -03.php mirror )编辑:如果是这样,你应该几乎肯定不要使用 git init --bare - bare是为空的server存储库你打算推进,而不是从工作树初始化一个新的回购。


I get that on initializing a bare repository, though there is about 1GB ram available in my remote machine. I've also taken a look at git add error : "fatal : malloc, out of memory", but it does not really help.

I don't understand why this error is created, it seems quite weird. Why does this happen ?

解决方案

Do you have a directory/file named "config" in your "bare" repo?

See http://www.bitchx.com/log/git-f/git-f-20-Mar-2010/git-f-20-Mar-2010-03.php (mirror)

EDIT: if so, you should almost certainly not be using git init --bare - bare is meant for empty "server" repositories that you intent to push to, not for initializing a new repo from a working tree.

这篇关于Git Init --Bare Error - 致命:内存不足? mmap失败:没有这样的设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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