git - fatal error : Can't resolve host github. com

标签 git github github-for-windows

我正在尝试将文件从我的本地存储库推送到我的远程存储库,我看到了这个

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 的步骤进行操作,请检查附件图像以查看我已遵循的步骤。

steps

最佳答案

这解决了我的问题:

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/

相关文章:

git - 创建与已删除分支同名的分支是否危险?

git - Heroku 'Permission denied (publickey) fatal: Could not read from remote repository' 困境

git - git config --get-all 在哪里看

python - 如何在 Github 操作中访问矩阵变量

python - 使用 github git 在命令行上进行 git

git - 如何创建并与其他开发人员共享 git 分支?

git - 如何在 git push(GitHub 和 node.js)之后自动部署我的应用程序?

git - 在 GitHub 中编辑 git commit 消息

找不到 Git 命令。请创建别名或将其添加到您的 PATH

GitHub:同步失败