无法解析主机:bitbucket.org;节点名或服务器名提供,或不知道 [英] Could not resolve host: bitbucket.org; nodename nor servname provided, or not known
问题描述
每当我尝试使用终端从Bitbucket中克隆任何回购时,就会出现这个错误:
$ git clone https:// me@bitbucket.org/me/myrepo.git
克隆到'blog'...
致命:无法访问'https://me@bitbucket.org/me/myrepo.git':无法
解析主机:bitbucket.org; nodename或者servname提供,或者不知道
我用GitHub替换'http' 'git'协议非常棒!但是当我在Bitbucket上试过时,我得到了这个:
git clone git://me@bitbucket.org/me/myrepo .git
克隆到'blog'...
致命:无法查找me@bitbucket.org(端口9418)(节点名或服务名
提供或未知)
因此,我删除了'me @',使其与实际网页相同,并且该操作刚刚超时。帮助?
在〜/ .gitconfig
[http $
代理
条目?如果是这样,那可能是你麻烦的根源。 (我从上面的帮助页面链接中提取了这个想法。)
This error comes up every time I try clone any repo from Bitbucket using terminal:
$ git clone https://me@bitbucket.org/me/myrepo.git
Cloning into 'blog'...
fatal: unable to access 'https://me@bitbucket.org/me/myrepo.git': Could not
resolve host: bitbucket.org; nodename nor servname provided, or not known
I had the same problem with GitHub resolved by replacing 'http' with 'git' protocol which was great! But when I tried that on Bitbucket I got this:
git clone git://me@bitbucket.org/me/myrepo.git
Cloning into 'blog'...
fatal: Unable to look up me@bitbucket.org (port 9418) (nodename nor servname
provided, or not known)
So I removed 'me@', making it the same as the actual webpage, and the operation just times out. Help?
In your ~/.gitconfig
, is there an [http]
section with a proxy
entry in it? If so, that may be the source of your trouble. (I extracted this idea from a help page link posted above.)
这篇关于无法解析主机:bitbucket.org;节点名或服务器名提供,或不知道的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!