拉命令错误:无法连接到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
之后,它应该可以工作