Git: fatal: The remote end hung up unexpectedly 解决方法

来源:互联网 发布:淘宝男模特王梓亦 编辑:程序博客网 时间:2024/04/26 05:44

方法一: 在命令行运行:

git config --global http.postBuffer 524288000# some comments below report having to double the value:git config --global http.postBuffer 1048576000
http.postBuffer

Maximum size in bytes of the buffer used by smart HTTP transports when POSTing data to the remote system.
For requests larger than this buffer size, HTTP/1.1 and Transfer-Encoding: chunked is used to avoid creating a massive pack file locally. Default is 1 MiB, which is sufficient for most requests.

转自: http://stackoverflow.com/questions/6842687/the-remote-end-hung-up-unexpectedly-while-git-cloning


方法二: 在.git\config配置文件中加:

[http]
postBuffer = 524288000




1 0
原创粉丝点击