致命错误:无法解析主机github.com [英] Fatal Error : Can't resolve host github.com
问题描述
我尝试从我的本地存储库将文件推送到远程存储库,我看到这个
$ b
致命错误:致命:无法访问'
解决方案这解决了我的问题:
http版本:
git config --global --unset http.proxy
$ b $ https版本:
git config --global --unset https.proxy
I am trying to push files to my remote repository from my local repository and I see this
fatal error : fatal: unable to access 'https://github.com/vinivasundharan/abcd.git/': Couldn't resolve host 'github.com'
My computer is not using any Proxy because I have seen methods to resolve the issue when Proxy is being used.
I have tried the solutions from this and this. But both doesn't seem to help. My system has an active internet connection using Windows 7.
UPDATE
git config -l
returns the following. I had to post it because I do not what exaclty this meanscore.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/*`
EDIT
Just to make sure that i have followed the steps to Upload the file to GitHub check the attached image to see the steps i have followed.
解决方案This solved my problem:
http version: git config --global --unset http.proxy https version: git config --global --unset https.proxy
这篇关于致命错误:无法解析主机github.com的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!