当我按照 github 中的第 5 点(测试所有内容)时guide http://help.github.com/linux-set-up-git/,ssh 命令也永远挂起。根据该指南,我应该看到一条消息“Github 不提供 shell 访问”。以下是 ssh -vT 的输出[电子邮件受保护] /cdn-cgi/l/email-protection
debug1: Authentication succeeded (publickey).
Authenticated to github.com ([207.97.227.239]:22).
debug1: channel 0: new [client-session]
debug1: Requesting [email protected] /cdn-cgi/l/email-protection
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending env LC_MESSAGES = en_US.UTF-8
debug1: Sending env LC_COLLATE = en_US.UTF-8
debug1: Sending env LANG = da_DK.UTF-8
debug1: Sending env LC_CTYPE = en_US.UTF-8
GitHub 提供了几种不同的方式来连接到远程存储库。我处于繁重的防火墙后面。所有方法也挂起except使用http(not https).
例如,JavaHamcrest 项目提供(匿名):
- https://github.com/hamcrest/JavaHamcrest.git https://github.com/hamcrest/JavaHamcrest.git
-
[电子邮件受保护] /cdn-cgi/l/email-protection:hamcrest/JavaHamcrest.git
- git://github.com/hamcrest/JavaHamcrest.git
您也可以尝试:
- http://github.com/hamcrest/JavaHamcrest.git http://github.com/hamcrest/JavaHamcrest.git
最后,为 UNIX 命令添加前缀GIT_TRACE=1
and GIT_CURL_VERBOSE=1
,并使用 Git 选项--verbose
以获得最大的调试输出。
例子:env GIT_TRACE=1 GIT_CURL_VERBOSE=1 git clone --verbose http://github.com/hamcrest/JavaHamcrest.git
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)