Git 解决the remote end hung up unexpectedly问题

当网络不好的时候,pull和push代码总是失败,可以打开cmd修改配置

修改提交缓存大小为1000M,或者更大的数字

git config --global http.postBuffer 1048576000

可通过命令查询修改后的配置

git config -l

 

diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
http.sslbackend=openssl
http.sslcainfo=D:/Git/mingw64/ssl/certs/ca-bundle.crt
core.autocrlf=true
core.fscache=true
core.symlinks=false
credential.helper=manager
user.name=*****
user.email=****
http.postbuffer=1048576000
core.compression=-1

你可能感兴趣的:(Git)