Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/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_Github For Windows - Fatal编程技术网

致命错误:无法解析主机github.com

致命错误:无法解析主机github.com,git,github,github-for-windows,Git,Github,Github For Windows,我试图将文件从本地存储库推送到远程存储库,我看到了这一点 致命错误:致命:无法访问:无法解析主机“github.com” 我的计算机没有使用任何代理,因为我看到了在使用代理时解决问题的方法 我尝试了和的解决方案。但两者似乎都没有帮助。我的系统具有使用Windows 7的活动internet连接 更新 git config-l返回以下内容。我不得不把它贴出来,因为我不知道这是什么意思 core.symlinks=false core.autocrlf=true color.diff=auto co

我试图将文件从本地存储库推送到远程存储库,我看到了这一点

致命错误:致命:无法访问:无法解析主机“github.com”

我的计算机没有使用任何代理,因为我看到了在使用代理时解决问题的方法

我尝试了和的解决方案。但两者似乎都没有帮助。我的系统具有使用Windows 7的活动internet连接

更新

git config-l返回以下内容。我不得不把它贴出来,因为我不知道这是什么意思

core.symlinks=false
core.autocrlf=true
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
help.format=html
http.sslcainfo=C:/Users/vav9sw/AppData/Local/Programs/Git/mingw64/ssl/certs/ca-bundle.crt
diff.astextplain.textconv=astextplain
rebase.autosquash=true
user.name=xyz
user.email=xyz@gmail.com
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.symlinks=false
core.ignorecase=true
core.hidedotfiles=dotGitOnly
remote.origin.url=https://github.com/vinivasundharan/abcd.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*`
编辑

只是为了确保我已经按照步骤将文件上载到GitHub,请检查附加的图像以查看我遵循的步骤


在Windows中,如果安装了任何第三方防火墙或internet活动监视器,请将其配置为允许客户端访问外部连接


如果没有任何第三方防火墙,则转到控制面板,搜索防火墙。在防火墙面板内,选择添加新异常或类似选项。允许git客户端同时进行入站和出站访问。

我建议您切换到ssh


您可以从https链接所在的位置获取github ssh链接。然后,您只需将ssh密钥生成/添加到github配置文件。就这样。

这解决了我的问题:

http version:

git config --global --unset http.proxy

https version:

git config --global --unset https.proxy

我在Windows10上使用GitHub客户端时遇到了类似的问题。以管理员身份运行似乎可以解决问题。

这样您就可以通过浏览器访问github了?是的。我可以访问这个网站。我看不到文件夹中的任何文件,尽管您已配置/更改了SSL设置?git config-l是否返回带有“proxy”的行?这更像是DNS问题。ping github.com是否在命令提示符下工作?如果没有,则问题在于您的网络/网络设置。我无法访问系统中的防火墙设置:也许这就是问题所在。我很抱歉,我不能接受这个答案,因为我永远无法检查这个解决方案是否能达到我想要的效果。我也是,顺便说一下,我在使用Mac