拉命令错误:无法连接到github.com:8080 [英] pull command error : Failed connect to github.com:8080

查看:105
本文介绍了拉命令错误:无法连接到github.com:8080的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图提取存储库,以便可以合并对存储库所做的更改.
但是在使用pull命令时会出现以下错误:

I tried to pull repository so that I can merge the changes made to my repository.
But while using the pull command it gives following error:

$ git pull https://github.com/ShrutiRuparel/depot.git master
error: Failed connect to github.com:8080; 
No error while accessing https://github.com/ShrutiRuparel/depot.git/info/refs

fatal: HTTP request failed

我尝试设置http代理,但没有更改.
push命令运行正常,但pull命令出错.
有什么建议吗?

I tried setting the http proxy but no change.
push command worked perfectly fine but error with pull command.
Any suggestions?

推荐答案

我遇到了同样的问题,因为我忘记了在Git上删除代理配置.

I had the same issue because I forgot to remove my proxy configuration on Git.

git config --global http.proxy

如果返回某些内容,则必须使用以下命令取消设置值:

If it returns something you have to unset the value with the following command :

git config --global --unset http.proxy

有很多方法可以为git设置代理,也许这不是一个好方法.您还可以检查环境变量.

There is a lot of way to set a proxy for git and maybe this is not the good one. You can also check your environment variable.

echo $http_proxy 

之后,它应该可以工作

这篇关于拉命令错误:无法连接到github.com:8080的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆