Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git clone from bitbucket.org is not working by https

I am facing the same problem as Could not resolve host: bitbucket.org; nodename nor servname provided, or not known. I have tried ip address given in comment, but it also gave the same message. Please, help to solve the issue. Here is the error code:

    MYNAME@DEVELOPER8 /d/Projects
    $ git clone https://[email protected]/PATH/TO/REPO.git
    Cloning into 'REPO'...
    fatal: unable to access 'https://[email protected]/PATH/TO/REPO.git/': Could not resolve host: bitbucket.org
like image 565
Khasan 24-7 Avatar asked Mar 20 '14 07:03

Khasan 24-7


People also ask

How do I Clone a Bitbucket using https?

Clone a Bitbucket repositoryClick + in the global sidebar on the left, and under Get to work select Clone this repository. Select HTTPS from the menu in the upper-right (unless you've already set up your SSH keys). Copy the clone command.

How do I copy a URL in Bitbucket?

Go to the bitbucket repository that you want to clone, on the left pane, there is a clone option. Clicking that will give you a link to the repository. Copy that and try git clone url-from-bitbucket . This should work!


2 Answers

Sometimes we make mistakes configuring our proxy. Maybe this can help, reset your proxy.

git config --global --unset http.proxy
git config --global --unset https.proxy
like image 60
andrewoodleyjr Avatar answered Sep 22 '22 17:09

andrewoodleyjr


When you create a repository in bitbucket, the user interface displays the exact clone command you need for you:

a busy cat

So, your clone command would need to be:

https://[email protected]/username/reponame.git

like image 23
ankit singh Avatar answered Sep 22 '22 17:09

ankit singh