赞
踩
系统环境:Ubuntu 20.04
error: gnutls_handshake() failed: A TLS packet with unexpected length was received. while accessing …
fatal: HTTP request failed
warning: redirecting to https:// xxxx .git/
error: RPC failed; HTTP 302 curl 22 The requested URL returned error: 302
fatal: the remote end hung up unexpectedly
分析
解决
git config --global http.xxx.git.followRedirects "true"
xxx
为https.xxx.git
~/.gitconfig 添加
- 与终端添加的方式同理
//添加la的地址
[http "https:// xxx .git"]
followRedirects = true
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
终端输入
git config --global http.postBuffer 524288000
~/.gitconfig
添加 与终端添加的方式同理
//这里改成1G了,500M仍然会报错
[http]
postBuffer = 1073741824
~/.gitconfig 添加
与终端添加的方式同理
[http]
postBuffer = 1073741824
lowSpeedLimit = 0
lowSpeedTime = 999999
error: RPC failed; curl 56 GnuTLS recv error (-9): Error decoding the received TLS packet.
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
sudo apt-get install gnutls-bin
#上述已经配置好,无需重复配置
git config --global http.sslVerify false
git config --global http.postBuffer 1048576000
#临时修改mtu
ifconfig eth0 mtu 9000
error: RPC failed; HTTP 502 curl 22 The requested URL returned
error: 502 Proxy Error fatal:
unset http
unset https
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。