Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git状态内存不足_Git_Sourcetree - Fatal编程技术网

Git状态内存不足

Git状态内存不足,git,sourcetree,Git,Sourcetree,我有一个相当大的存储库,里面有很多文件。 我在当地的分公司工作了几天,决定今天推动。不幸的是,“git status”返回内存不足错误。 我试图在配置文件中更改一些内存分配大小,但运气不好。我做错了什么?有什么我能做的吗?只要在推的时候一部分一部分地添加 像这样: 第一部分 git add folder-one/* git commit -m 'Message' git push 第二部分 git add folder-two/* git commit -m 'Message' git pus

我有一个相当大的存储库,里面有很多文件。 我在当地的分公司工作了几天,决定今天推动。不幸的是,“git status”返回内存不足错误。
我试图在配置文件中更改一些内存分配大小,但运气不好。我做错了什么?有什么我能做的吗?

只要在推的时候一部分一部分地添加

像这样:

第一部分

git add folder-one/*
git commit -m 'Message'
git push
第二部分

git add folder-two/*
git commit -m 'Message'
git push

这成功了!以某种方式仍然不知道为什么git状态失败,但非常感谢修复!