error: RPC failed; HTTP 302 curl 22 The requested URL returned error: 302
fatal: the remote end hung up unexpectedly
今天在下载QCC原码时失败,记录一下:
出现此原因的问题:
1,http.followRedirects 不能自动跳造成的。
需要 git config --global http.https://xxx.xxx.git .followRedirects "true"
其中,需要把: https://xxx.xxx.git 改成你要 clone 的网址。
比如: https://gitee.xxx.git
本文介绍了一种常见的Git操作错误——下载原码时遇到的302重定向问题及其解决方案。主要原因是Git配置中http.followRedirects选项未正确设置,导致无法自动跳转。通过修改全局Git配置,将对应仓库的http.followRedirects设为true,即可解决此问题。
4261

被折叠的 条评论
为什么被折叠?



