我正在尝试将文件从我的本地存储库推送到我的远程存储库,我看到了这个
fatal error : fatal: unable to access 'https://github.com/vinivasundharan/abcd.git/': Couldn't resolve host '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 的步骤进行操作,请检查附件图像以查看我已遵循的步骤。
最佳答案
这解决了我的问题:
http version:
git config --global --unset http.proxy
https version:
git config --global --unset https.proxy
关于git - fatal error : Can't resolve host github. com,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33667782/