Timeout when trying to connect to github using wget

view story

http://serverfault.com – I'm relatively new to server management and I have a home development server running a LAMP stack on Ubuntu Server version 12.10. I'm trying to download a git repository via SSH using the following command: wget https://api.github.com/repos/avalanche123/Imagine/zipball/v0.3.0 However when doing this the server is unable to connect and times out. What I've noticed though is if then try to ping api.github.com it responds as normal, and then if I try the above command again it works fine for a few minutes again until it starts to time out all over again. The only other site I've noticed this (HowTos)