git clone hangs at "checking connectivity"


OS – Windows 7 professional 64 bit

GIT for windows – Git-1.9.0 – Using Git bash

I started having problems with “git fetch” suddenly out of nowhere.

Sometimes git.exe would error out and sometimes the “git fetch” would just hang.

So I decided to start everything from scratch.

I uninstalled git for windows and reinstalled it (accepting all defaults), restarted the machine. Created a brand new folder and did the following

$ git clone [email protected]:[email protected]/myproject.git
Cloning into 'myproject'...
Enter passphrase for key '/c/Users/myid/.ssh/id_rsa':
remote: Counting objects: 287209, done.
remote: Compressing objects: 100% (86467/86467), done.
remote: Total 287209 (delta 188451), reused 287209 (delta 188451)
Receiving objects: 100% (287209/287209), 168.89 MiB | 328.00 KiB/s, done.
Resolving deltas: 100% (188451/188451), done.
Checking connectivity...

It consistently just hangs at “checking connectivity”

I have scanned the machine for viruses/trojans what have you and no threats were found.

This is happening both at work location and from home – So its probably not the internet.

I’m not sure how to proceed or what to try next.


I removed the known_hosts file from my ~/.ssh folder, which did the trick. Everything works now.

Answered By – FatherFigure

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published