无法解析主机:bitbucket.org;节点名或服务器名提供,或不知道 [英] Could not resolve host: bitbucket.org; nodename nor servname provided, or not known

查看:999
本文介绍了无法解析主机:bitbucket.org;节点名或服务器名提供,或不知道的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我尝试使用终端从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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆