7

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?

Braiam
  • 1
  • 11
  • 47
  • 78
Annie
  • 81
  • 1
  • 1
  • 3

2 Answers2

1

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

Paul Bissex
  • 1,611
  • 1
  • 17
  • 22
  • For more information re the proxy see http://stackoverflow.com/questions/783811/getting-git-to-work-with-a-proxy-server/19213999#19213999 – Andy Robinson Sep 02 '14 at 13:18
-3

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

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

The Bitbucket repository overview webpage gives a clone command that includes https. On Mac, just remove the 's'.

Avishai
  • 15
  • 2