Git-git提交报错error:RPC failed

git push报如下错误

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

解决:

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

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 --global http.postBuffer 524288000

#git global --list

#git push -u origin master

posted @ 2018-01-19 14:10  奔跑在study的路上  阅读(8780)  评论(0编辑  收藏  举报