Getting Access Denied while cloning using git clon

2020-03-31 05:04发布

问题:

I am getting the below error while cloning my repository: please suggest

Gurudas@Gurudas MINGW64 /e/Python/Python Programs (master)
$ git clone https://github.com/Anu1996rag/Python_Basics.git
Cloning into 'Python_Basics'...
fatal: unable to access 'https://github.com/Anu1996rag/Python_Basics.git/': getaddrinfo() thread failed to start

回答1:

MINGW64 means a git bash session on Windows.

Check your git config http.proxy output as well as your echo $HTTP_PROXY output, to check if you have any proxy defined.

Check also if an SSH URL would work (provided you have configured first an SSH key , using ssh-keygen -t rsa -P "" -m PEM, and added the public one id_rsa.pub to your GitHub account)

git clone git@gihub.com:Anu1996rag/Python_Basics