git clone from bitbucket.org is not working by https

Kha*_*4-7 7 git clone bitbucket

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
Run Code Online (Sandbox Code Playgroud)

and*_*yjr 16

有时我们会错误地配置我们的代理.也许这可以帮助,重置你的代理.

git config --global --unset http.proxy
git config --global --unset https.proxy
Run Code Online (Sandbox Code Playgroud)

  • 请提供比代码片段更多的解释。这对我们来说可能很明显,但帮助其他人让他们知道为什么这段代码回答了这个问题 (2认同)