git push报如下错误

原因:缓存值太小,远程便捷HTTP传输请求数据时最大的缓存字节数,默认时1M字节

 执行命令:

#git config --help(查找报错原因)

会打开你本地的一个文件到浏览器  然后你搜http.pistBuffer======>

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.

 

解决办法

$ git config http.postBuffer 524288000

然后再push 就好了

 

更多推荐