Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not resolve host: bitbucket.org; nodename nor servname provided, or not known

Tags:

git

bitbucket

This error comes up every time I try clone any repo from Bitbucket using terminal:

$ git clone https://[email protected]/me/myrepo.git
Cloning into 'blog'...
fatal: unable to access 'https://[email protected]/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://[email protected]/me/myrepo.git
Cloning into 'blog'...
fatal: Unable to look up [email protected] (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?

like image 497
Annie Avatar asked Sep 21 '13 03:09

Annie


1 Answers

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.)

like image 159
Paul Bissex Avatar answered Sep 23 '22 07:09

Paul Bissex