Are you connecting through a work network such as a university or big company? Some ports may be blocked by your IT firewalls and not allowing you to get to github. I used the insteadof method to replace the git:// to https:// and it worked for me :
git config --global url.https://github.com/.insteadOf git://github.com/
HTH
Helen