天使漫步IT工作室天使漫步IT工作室

git push 出现 error: unable to rewind rpc post data - try increasing http.postBuffer

错误:

Counting objects: 1916, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (1836/1836), done.
Writing objects:  22% (436/1916), 13.94 MiB | 23.00 KiB/s   

error: unable to rewind rpc post data - try increasing http.postBuffer
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
fatal: The remote end hung up unexpectedlyB | 13.00 KiB/s   
Writing objects: 100% (1916/1916), 28.87 MiB | 52.00 KiB/s, done.
Total 1916 (delta 296), reused 0 (delta 0)
fatal: The remote end hung up unexpectedly
Everything up-to-date

解决办法:try increasing http.postBuffer

上面的意思是让你增加http.postBuffer的大小,那么增加git中http.post缓存的大小方法为:

git config http.postBuffer 1024000

这里的1024000就是增加以后的大小,这里设置为:1024*1000倍。应该比原来的大了,如果还有问题可以设置得大一些,直到能够push为止。

经测试,以上方法可行。

本站原创,欢迎转载,转载敬请标明出处:天使漫步IT工作室 » git push 出现 error: unable to rewind rpc post data - try increasing http.postBuffer
添加新评论