在linux中使用git clone遇到了如下的问题,记录一下以备查看。
问题1:
git clone https://github.com/xxx.git
fatal: unable to access 'https://github.com/xxx.git/': OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
解决:是代理的问题,禁用代理配置
git config --global --add remote.origin.proxy ""
问题2:
git clone https://github.com/xxx.git
error: RPC failed; result=28, HTTP code = 0
fatal: The remote end hung up unexpectedly
解决:设置Git的http缓存大小,在当前工程目录下运行如下命令:
git config --global http.postBuffer 20M
如果20M不行就50M,我改成100M才可以