Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法连接到github.com_Git_Github_Heroku - Fatal编程技术网

无法连接到github.com

无法连接到github.com,git,github,heroku,Git,Github,Heroku,当我尝试推送到Heroku上的Git存储库时,我得到以下错误: 致命:无法访问“”:无法连接到github.com端口9836:操作超时 当我尝试从github.com克隆任何存储库时,也会出现相同的错误 我尝试了以下命令,但没有成功 git config --global http.proxy github.com:9836 git config --global https.proxy github.com:9836 这些命令: 当您尝试使用HTTPS推送到Heroku时,Git现在尝试使

当我尝试推送到Heroku上的Git存储库时,我得到以下错误:

致命:无法访问“”:无法连接到github.com端口9836:操作超时

当我尝试从github.com克隆任何存储库时,也会出现相同的错误

我尝试了以下命令,但没有成功

git config --global http.proxy github.com:9836
git config --global https.proxy github.com:9836
这些命令:

当您尝试使用HTTPS推送到Heroku时,Git现在尝试使用GitHub作为代理。据我所知,GitHub不运行任何公共Git代理,我也不确定它们的用途

删除这些设置


或者手动编辑
~/.gitconfig
文件应该可以解决推送到Heroku的问题,前提是您实际上不需要代理。

…您已经将Git配置为通过GitHub代理所有HTTP和HTTPS请求。你为什么这么做?有人告诉我这是一个解决办法,几乎可以肯定这就是你所问问题的原因。你认为这是解决什么问题的办法?谁建议你这么做的?我已经清除了“有问题的”git配置设置,Heroku推送现在可以工作了。我被建议尝试解决以下github克隆错误:-权限被拒绝(公钥)。致命:无法从远程存储库读取,并且存储库存在。
git config --global http.proxy github.com:9836
git config --global https.proxy github.com:9836
git config --global --unset http.proxy
git config --global --unset https.proxy