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

Vin*_*ini 17 git github github-for-windows

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

致命错误:致命:无法访问' https://github.com/vinivasundharan/abcd.git/ ':无法解析主机'github.com'

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

我试过这个这个的解决方案.但两者似乎都没有帮助.我的系统使用Windows 7进行了有效的Internet连接.

UPDATE

git config -l返回以下内容.我不得不发布它,因为我没有这意味着什么exaclty

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/*`
Run Code Online (Sandbox Code Playgroud)

编辑

只是为了确保我已按照上传文件到GitHub的步骤检查附加图像以查看我所遵循的步骤.

脚步

Ran*_*han 9

这解决了我的问题:

http version:

git config --global --unset http.proxy

https version:

git config --global --unset https.proxy
Run Code Online (Sandbox Code Playgroud)

  • 我也不是,就像我使用Mac一样 (2认同)

hjp*_*r92 4

在 Windows 中,如果您安装了任何第三方防火墙(或互联网活动监视器),则将它们配置为允许您的客户端访问外部连接。

如果没有任何第三部分防火墙,则转到控制面板,搜索防火墙。在防火墙面板内,选择添加新例外(或类似选项)。允许 git 客户端入站和出站访问。