我正在尝试将存储库从本地推送到服务器,并在Linux上遇到以下错误:
$git push --all ; sync
Counting objects: 12, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (12/12), done.
Writing objects: 100% (12/12), 1.36 KiB | 1.36 MiB/s, done.
Total 12 (delta 10), reused 0 (delta 0)
error: cannot create thread: Nie można przydzielić pamięci
error: cannot create thread: Nie można przydzielić pamięci
fatal: bad object eb8cc7e1634b39049450d01cc38e95ddd33981bb
fatal: bad object eb8cc7e1634b39049450d01cc38e95ddd33981bb
error: pthread_join failed
To ssh://server/home/user/some.git
! [remote rejected] uff -> uff (missing necessary objects)
error: failed to push some refs to 'ssh://server/home/user/some.git'
comandline,系统linux cli / server。我正在做分支 我可以添加修改,但不能推送到服务器。
$ git status
On branch uff
Your branch is ahead of 'origin/uff' by 3 commits.
(use "git push" to publish your local commits)
nothing to commit, working tree clean
我现在必须做什么?我发现了大肠菌病?这可能吗?
答案 0 :(得分:1)
根据Google翻译
错误:无法创建线程:Niemożnaprzydzielićpamięci
表示git错误:
无法创建线程:无法分配内存
git
中的内存问题free -mh
或top
或htop
。
您的主机有足够的可用内存git
对象设置内存分配:git config --add core.bigFileThreshold 1m
摘自git-config-core.bigFileThreshold上的文档:
大于此大小的文件将进行缩小存储,而不尝试增量压缩。在不进行增量压缩的情况下存储大文件可避免过多的内存使用,但以增加磁盘使用量为代价。
在所有平台上默认为512 MiB。对于大多数项目来说,这应该是合理的,因为源代码和其他文本文件仍可以进行增量压缩,但较大的二进制媒体文件则不能。
支持k,m或g的通用单位后缀。