sourceTree :报错error: RPC failed; curl 56 Recv failure: Connection reset by peer

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sourceTree :报错error: RPC failed; curl 56 Recv failure: Connection reset by peer相关的知识,希望对你有一定的参考价值。

参考技术A

网上很多方法都试了,但是不成功,最终这样处理。上面的这个 56 ,这个有时候是 18 ,处理方法都一样。

1、查看当前配置命令

2、 httpBuffer 加大
(即 http.postBuffer 的值,单位为 B , 1GB = 1024*1024*1000 B = 1048576000 B ):

或者

注: 4.497MB 的项目是clone成功啦,但 809MB 的项目克隆失败,设置成 2GB 后克隆成功,所以尽量设置大点。
3、压缩配置

4、修改配置文件

5、 cd 到目标文件夹下,那就先执行

6、再输入:

7、再重新终端 git clone ,就成功了。

关键点重中之重注意:为什么用终端 git clone ,不用 sourcetree ?以及具体步骤

SourceTree git 报错

Couldn’t reserve space for cygwin’s heap, Win32 error 0
git pull 时报错如下:

E:\\storm-sql>git pull origin Branch_master
  0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487
AllocationBase 0x0, BaseAddress 0x68570000, RegionSize 0x2F0000, State 0x10000
C:\\xxxxxxx\\bin\\sh.exe: *** Couldn‘t reserve space for cygwin‘s heap, Win32     error 0

原因分析:

Cygwin uses persistent shared memory sections, which can on occasion become corrupted. The symptom of this is that some Cygwin programs begin to fail, but other applications are unaffected. Since these shared memory sections are persistent, often a reboot is needed to clear them out before the problem can be resolved.

解决办法:
找到Git的安装目录,在命令行下切到bin目录,使用如下命令:

rebase -b 0x76000000  msys-1.0.dll

或者

rebase.exe -b 0x50000000 msys-1.0.dll

问题解决

以上是关于sourceTree :报错error: RPC failed; curl 56 Recv failure: Connection reset by peer的主要内容,如果未能解决你的问题,请参考以下文章

解决 Sourcetree 报错 Couldn't posix_spawn: error 2 问题

SourceTree git 报错

git push报错:error: RPC failed; result=22, HTTP code = 413

解决报错Error response from daemon: rpc error: code = Unavailable desc = all SubConns are in TransientFa

关于Git上传项目报错error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413

Jenkins之发布报错“error: RPC failed; curl 18 transfer closed with outstanding read data remaining”