Search code examples
gitclonebitbucket

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://MYNAME@bitbucket.org/PATH/TO/REPO.git
    Cloning into 'REPO'...
    fatal: unable to access 'https://MYNAME@bitbucket.org/PATH/TO/REPO.git/': Could not resolve host: bitbucket.org

Solution

  • 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