Khasan 24-7
Khasan 24-7

Reputation: 467

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

Upvotes: 9

Views: 20031

Answers (2)

andrewoodleyjr
andrewoodleyjr

Reputation: 3021

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

or one liner

git config --global --unset http.proxy https.proxy

Upvotes: 19

ankit singh
ankit singh

Reputation: 367

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

Upvotes: 3

Related Questions