我正试图从本地存储库向远程存储库推送文件,但我看到了以下错误信息:
致命错误:致命错误:无法访问'https://github.com/vinivasundharan/abcd.git/':无法解析主机“github.com”
我的计算机没有使用任何代理,因为我已经看到了解决代理问题的方法。
我已尝试过这里和这里提供的解决方案。但两者似乎都没有帮助。我的系统使用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的步骤进行操作,查看附加的图片以查看我所遵循的步骤。
ping github.com
命令?如果无法执行,则问题可能出在您的网络/网络设置上。 - John Szakmeisterping github.com
和ping google.com
无法解析IP地址,那么您可能无法访问其他网站。 - John Szakmeistergit clone https://github.com/vinivasundharan/testnew1.git
时,它显示无法解析主机。我也无法从远程仓库克隆到桌面。它也失败了。 - Vini