当前位置:   article > 正文

使用git遇到的问题_rpc failed; curl 56 recv failure: connection was r

rpc failed; curl 56 recv failure: connection was reset the remote end hung u

使用git遇到的问题

1、克隆或push遇到:the remote end hung up unexpectedly

可能是网络慢的原因,增加最低速度、时间
解决办法:
git config --global http.lowSpeedLimit 0
git config --global http.lowSpeedTime 999999

2、克隆遇到:RPC failed; curl 56 Recv failure: Connection was reset the remote end hung up unexpectedly early EOF index-pack failed

可能是http缓存不够或者网络不稳定
解决办法:
git config --global http.postBuffer 524288000


如果上面修改完还是无法克隆,可以尝试:
git clone --depth=1 https://xxx(只克隆最新提交的一个分支)
然后进入上面克隆的仓库,执行
git fetch --unshallow(获取完整历史信息)

3、git add .命令出现error: xxx does not have a commit checked out问题

我个人是因为除了git仓库根目录下,有另一个文件夹里面也有.git文件夹,删掉不是根目录下的.git就好

4、fatal: unable to access ‘https://github.com/…/.git’: Could not resolve host: github.com

一般是因为无法访问 github 导致的
解决办法:
git config --global --unset http.proxy
git config --global --unset https.proxy

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/一键难忘520/article/detail/811770
推荐阅读
相关标签
  

闽ICP备14008679号