【发布时间】:2016-02-13 13:28:16
【问题描述】:
我正在尝试将文件从本地存储库推送到远程存储库,我看到了这个
致命错误:致命:无法访问“https://github.com/vinivasundharan/abcd.git/”:无法解析主机“github.com”
我的计算机没有使用任何代理,因为我已经看到了在使用代理时解决问题的方法。
我已经尝试了this 和this 的解决方案。但两者似乎都没有帮助。我的系统有一个使用 Windows 7 的有效互联网连接。
更新
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,请检查附件图片以查看我已遵循的步骤。
【问题讨论】:
-
这样你就可以通过浏览器访问github了?
-
是的。我可以访问网站。我看不到文件夹中的任何文件
-
您是否配置/更改了您的 SSL 设置?
-
git config -l是否返回包含“代理”的行? -
这似乎更像是一个 DNS 问题。
ping github.com是否在命令提示符下工作?如果不是,则问题出在您的网络/网络设置上。
标签: git github github-for-windows