Cloning from GitHub hanging for no apparent reason? A work-around. Anyone know why it works?
For some reason GitHub has been hanging when cloning new repos. I did find a workaround that solves it.
You need to make sure your ssh public key is configured in GitHub of course. Then, edit your .ssh/config file and add:
Host github.com
Hostname ssh.github.com
Port 443
Then from the command line:
ssh -T git@github.com
Then your clones should no longer hang.
I have yet to understand why this works. But its working for me!
Credits
I didn’t solve this. I found it here. Kudos to those folks!