在git clone过程中遇到`The remote end hung up unexpectedly`

在git clone过程中遇到The remote end hung up unexpectedly

RPC failed: curl 56 GnuTLS recv error (-54):Error in the pull function.		

可以通过

git config --global http.postBuffer 524288000 #httpBuffer加大
git config --global http.masRequestBuffer 100M
git config --global core.compression 0 #压缩配置

#修改配置文件
export GIT_TRACE_PACKET=1
export GIT_TRACE=1
export GIT_CURL_VERBOSE=1

Linux export 命令用于设置或显示环境变量。

GIT_TRACE_PACKET enables packet-level tracing for network operations.

GIT_TRACE controls general traces, which don’t fit into any specific category. This includes the expansion of aliases, and delegation to other sub-programs.

Git uses the curl library to do network operations over HTTP, so GIT_CURL_VERBOSE tells Git to emit all the messages generated by that library. This is similar to doing curl -v on the command line.

当在使用Git进行拉取或推送操作时,出现"fatal: The remote end hung up unexpectedly"的错误提示通常有两种可能的原因。第一种原因是推送的文件过大,导致超过了服务器的限制。解决这个问题的方法是,将大文件进行压缩或者拆分成多个小文件进行推送。另一种可能的原因是网络连接较差,导致连接超时。为了解决这个问题,可以尝试调整Git的配置参数,以增加网络连接的稳定性。可以使用以下命令来设置Git的配置参数: ``` git config --global http.lowSpeedLimit 0 git config --global http.lowSpeedTime 999999 ``` 这会将Git的连接速度限制设置为0,同时将连接超时时间设置为999999秒。请注意,这些配置参数是针对当前用户有效的,如果需要对所有用户生效,则需要使用`--system`参数。 通过调整以上配置参数,可以增加Git与远程仓库之间的连接稳定性,从而成功完成拉取或推送操作。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [git 出现fatal: The remote end hung up unexpectedly 解决方案](https://blog.csdn.net/qxf865618770/article/details/119236188)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] - *2* *3* [git命令 fatal: The remote end hung up unexpectedly 出错 解决方法](https://blog.csdn.net/qq_44702847/article/details/106638410)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值