GIT-错误:推送某些引用失败

GIT-错误:推送某些引用失败,git,backup,Git,Backup,我是GIT的新手,一直在用它来备份我的服务器。以前我没有遇到任何问题,备份一直出现在gitlab中。今天我尝试并收到了以下消息: $ git push -u origin master Counting objects: 8664, done. warning: suboptimal pack - out of memory Compressing objects: 100% (5771/5771), done. fatal: Out of memory, malloc failed (tr

我是GIT的新手,一直在用它来备份我的服务器。以前我没有遇到任何问题,备份一直出现在gitlab中。今天我尝试并收到了以下消息:

$ git push -u origin master

Counting objects: 8664, done. 
warning: suboptimal pack - out of memory
Compressing objects: 100% (5771/5771), done.
fatal: Out of memory, malloc failed (tried to allocate 266790794 bytes)
remote: fatal: early EOF
error: failed to push some refs to 'git@gitlab.com:XXX/server-XXX.git'

如果您有任何建议,请在评论中告诉我(请记住我对GIT很陌生),谢谢

提交文件的大小是多少?重新启动电脑后是否尝试过?或者关闭占用大量内存的应用程序。如果您的任何文件>50MB,则应检查以下链接提交文件的大小?重新启动电脑后您是否尝试过?或者关闭占用大量内存的应用程序。如果您的任何文件>50MB,则应检查以下链接