git 大文件报错Out of memory, malloc failed、 The remote end hung up unexpectedly

git  clone出现 "fatal: The remote end hung up unexpectedly" 

设置

 git config --global http.postBuffer 104857600000

后git clone报错

fatal: Out of memory, malloc failed (tried to allocate 1778384896 bytes)
又把postBuffer改了回去

 git config --global http.postBuffer 10485760000

采用深度为1来控制

git clone xxx.git xxxxx --depth 1

你可能感兴趣的:(git)