Failed to resolve host: bitbucket.org; nodename or servname, or unknown

This error occurs every time I try to clone any repo from Bitbucket using the 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 as on GitHub, replacing β€œhttp” with the β€œgit” protocol, which was great! But when I tried this on Bitbucket, I got the following:

 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 deleted "me @", making it the same as the actual web page, and the operation is just time. Help?

+7
git bitbucket
source share
2 answers

Does your ~/.gitconfig have a [http] section with a proxy entry in it? If so, this could be the source of your problem. (I extracted this idea from the man page link posted above.)

+1
source share

When cloning from Bitbucket through a terminal on mac osx only http is supported, not https.

You should be able to use the same command just by using http.

The Bitbucket repository overview web page provides the clone command, which includes https. On a Mac, just remove the 's'.

-3
source share

All Articles