【Git】Git拉取失败,报错超出内存,内存分配失败
报错信息:
Microsoft Windows [版本 6.1.7601] 版权所有 (c) 2009 Microsoft Corporation。保留所有权利。 C:\Users\Administrator\Desktop>git clone https://github.com/PanJiaChen/vue-element-admin.git Cloning into 'vue-element-admin'... fatal: Out of memory, malloc failed (tried to allocate 889192448 bytes) fatal: the remote end hung up unexpectedly C:\Users\Administrator\Desktop>
编辑Git的配置文件:
C:\Users\Administrator\.gitconfig
文件信息:
[user] email = 1791255334@qq.com name = Cloud9 [core] compression = -1 packedGitLimit = 128m packedGitWindowSize = 128m [pack] deltaCacheSize = 128m packSizeLimit = 128m windowMemory = 128m [http] postBuffer = 1048576000 sslVerify = false [filter "lfs"] clean = git-lfs clean -- %f smudge = git-lfs smudge -- %f process = git-lfs filter-process required = true
然后拉取代码才正常了
C:\Users\Administrator\Desktop>git clone https://github.com/PanJiaChen/vue-element-admin.git Cloning into 'vue-element-admin'... remote: Enumerating objects: 11971, done. remote: Total 11971 (delta 0), reused 0 (delta 0), pack-reused 11971 Receiving objects: 100% (11971/11971), 15.06 MiB | 3.98 MiB/s, done. Resolving deltas: 100% (7367/7367), done. C:\Users\Administrator\Desktop>