Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 743
FatherFigure Avatar asked Jul 16 '14 05:07

FatherFigure


2 Answers

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

like image 68
FatherFigure Avatar answered Oct 11 '22 13:10

FatherFigure


This message is not related to network connectivity. This is about checking whether every object is connected to an existing reference.

Detailed answer can be found on superuser

like image 42
Jónás Balázs Avatar answered Oct 11 '22 15:10

Jónás Balázs