git clone hangs forever on github

前端 未结 8 1414
一生所求
一生所求 2020-12-03 04:26

When I follow point 5 (Test everything out) in the github guide, the ssh command also hangs forever. According to the guide, I should be presented with a message that \"Gith

8条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-03 04:58

    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: GIT_TRACE=1 GIT_CURL_VERBOSE=1 git clone --verbose http://github.com/hamcrest/JavaHamcrest.git

提交回复
热议问题