简体   繁体   中英

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 git@github.com:myid@example.com/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.

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

尝试使用设置环境变量GIT_CURL_VERBOSE=1运行 git 以查看发生了什么。

你应该执行“git prune”。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM