3

I am getting the below error while cloning my repository:

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

What can I do to fix this error?

4
  • Hi, welcome to stack overflow. Please refer the How to Ask link and update your question accordingly. Provide a minimal reproducible example. Commented Dec 29, 2019 at 6: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. Commented Dec 29, 2019 at 6: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 ? Commented Dec 29, 2019 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. Commented Dec 29, 2019 at 17:47

3 Answers 3

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 [email protected]:Anu1996rag/Python_Basics
Sign up to request clarification or add additional context in comments.

2 Comments

If you cannot ping github.com, this is not surprising indeed.
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.
0

I had the same problem, and in my case solved this by updating git version from 2.41.0 to 2.42.0 on Windows. Try updating maybe it's work for you too.

Comments

0

Checked the firewall, turned it off, and tried to sign out from GitHub on my local machine, but all these steps didn't help me.

Just restarted my PC and now everything works perfectly :)

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.