1

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
anurag patil
  • 11
  • 1
  • 4
  • Hi, welcome to stack overflow. Please refer the [ask] link and update your question accordingly. Provide a minimal reproducible example. – Jeroen Heier Dec 29 '19 at 06:42
  • The `getaddrinfo` part of the error message seems like it's pointing to a DNS problem. Can you `ping github.com` from your terminal/shell? I'm not familiar with `MINGW64` and perhaps you should add that tag to the question in case it's related. – karmakaze Dec 29 '19 at 06:58
  • @karmakaze : am unable to ping github.com C:\Users\Gurudas>ping github.com Pinging github.com [13.234.210.38] with 32 bytes of data: Request timed out. Request timed out. Request timed out. Request timed out. Ping statistics for 13.234.210.38: Packets: Sent = 4, Received = 0, Lost = 4 (100% loss), can you please let me know how to resolve this ? – anurag patil Dec 29 '19 at 11:18
  • 1
    Sorry I don't much about MINGW64 at all, I mostly use WSL (Windows Subsystem for Linux) when on Windows 10. I suggest changing the question title to say something about git-bash/MINGW64 and DNS to get the right people to see this. – karmakaze Dec 29 '19 at 17:47

1 Answers1

2

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
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • If you cannot ping github.com, this is not surprising indeed. – VonC Dec 29 '19 at 12:28
  • I had the same problem, I tried several solutions until I found out that in my case it was the firewall. Mine was the "Free Firewall", I noticed that even authorizing the software and connections it was still not possible to have a connection to the remote repository. I disabled it and it didn't solve it, only when I uninstalled it that the problem was solved and I was able to use Git normally. – Flavio A. Ribeiro Apr 18 '20 at 03:02