命令:git clone git://github.com/xxxx
错误信息:
fatal: unable to connect to github.com:
github.com[0: 你的IP]: errno=Operation timed out
原因:
需要用https才能读到数据
解决方法:输入命令
git config --global url."https://github.com".insteadOf git://github.com
如果再次git clone出现报错:
fatal: unable to access ‘https://github.com/robbyrussell/oh-my-zsh.git/’: LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
输入命令:
git config --global --unset http.proxy
git config --global --unset https.proxy