clone命令克隆时获得访问被拒绝

clone命令克隆时获得访问被拒绝

本文介绍了使用git clone命令克隆时获得访问被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

克隆存储库时出现以下错误:请建议

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

推荐答案

MINGW64表示Windows上的git bash会话.

MINGW64 means a git bash session on Windows.

检查您的git config http.proxy输出以及echo $HTTP_PROXY输出,以检查是否定义了任何代理.

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

还要检查SSH URL是否有效(前提是您拥有首先使用ssh-keygen -t rsa -P "" -m PEM配置SSH密钥,然后添加)

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 [email protected]:Anu1996rag/Python_Basics

这篇关于使用git clone命令克隆时获得访问被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-05 11:09