git clone hangs forever on github

GitHub offers a few different ways to connect to the remote repo. I am behind an onerous firewall. All methods also hang except using http (not https).

For example, the JavaHamcrest project offers (anonymously):

  • https://github.com/hamcrest/JavaHamcrest.git
  • git@github.com:hamcrest/JavaHamcrest.git
  • git://github.com/hamcrest/JavaHamcrest.git

You may also try:

  • http://github.com/hamcrest/JavaHamcrest.git

Finally, prefix your UNIX command with GIT_TRACE=1 and GIT_CURL_VERBOSE=1, and use Git option --verbose for maximum debug output.

Example: env GIT_TRACE=1 GIT_CURL_VERBOSE=1 git clone --verbose http://github.com/hamcrest/JavaHamcrest.git

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)