[英]git error: RPC failed; HTTP 502 curl 22 The requested URL returned error: 502 Proxy Error
I work with tortoise git for my actual project.我在我的实际项目中使用乌龟 git。 Me and the other members have some trouble since last week with our repository (worked perfect before).
自上周以来,我和其他成员在使用我们的存储库(之前工作完美)时遇到了一些麻烦。
When I want to push/pull/clone (HTTPS), I get the following error:当我想要推/拉/克隆 (HTTPS) 时,出现以下错误:
fatal: The remote end hung up unexpectedly error: RPC failed;
致命:远程端意外挂断错误:RPC失败; HTTP 502 curl 22 The requested URL returned error: 502 Proxy Error
HTTP 502 curl 22 请求的URL返回错误:502 Proxy Error
Seems like something went wrong with the proxy server.似乎代理服务器出了点问题。 I can use the repository as usual in the local.network of my institute, but I get no access from home.
我可以像往常一样在我研究所的 local.network 中使用存储库,但我无法从家里访问。
Does anyone has an idea how to fix this error?有谁知道如何解决此错误? Unfortunately i can't find any other posts about this problem.
不幸的是我找不到关于这个问题的任何其他帖子。
Greetings, Homer问候,荷马
This kind of error happens mostly because of 2 reasons:发生这种错误主要有两个原因:
pushing binary files/jar files to repo将二进制文件/jar 文件推送到 repo
if the file(s) size is big.如果文件大小很大。
Solution:解决方案:
1. Use admin credential for pushing code change 1. 使用管理员凭据推送代码更改
2. execute the command git config --local http.postBuffer 157286400
before pushing. 2.
git config --local http.postBuffer 157286400
前执行命令git config --local http.postBuffer 157286400
。
The first step in troubleshooting this is to determine if you can import the entire repository without problems.解决此问题的第一步是确定您是否可以毫无问题地导入整个存储库。 If so, then any individual branch within the repository should not cause a problem.
如果是这样,那么存储库中的任何单个分支都不会导致问题。 So rather than trying to "just clone a branch", can you do the following:
因此,与其尝试“只是克隆一个分支”,不如执行以下操作:
Try this:尝试这个:
I don't understand why the error appears but luckily this works for me, i hope that can help others, regards.我不明白为什么会出现错误,但幸运的是这对我有用,我希望可以帮助其他人,问候。
Updating http.postBuffer didn't work for me.更新 http.postBuffer 对我不起作用。 In my case, I had 17 files to push.
就我而言,我有 17 个文件要推送。 So I have pushed 17 files in chunks.
所以我分块推送了 17 个文件。 Like 4-5 files together.
就像4-5个文件在一起。 It did solve my issue.
它确实解决了我的问题。 Thanks @thesprinter for the hint.
感谢@thesprinter 的提示。
I had the same issue, I undid my last commit via git resest
then again commit the changes.我遇到了同样的问题,我通过
git resest
了我的最后一次提交,然后再次提交更改。 It resolved the problem.它解决了这个问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.