问题1:
git pull的时候出现文件过大无法下拉代码的问题
现象:
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: The remote end hung up unexpectedly
fatal: protocol error: bad pack header
解决方法:
方法一:在终端输入 git config http.postBuffer 524288000000 //设置可以下拉大小
方法二:使用ssh方式下拉代码
问题2:
git clone的时候出现ssl connect error
现象:
fatal: unable to access 'https://github.com/***/***': SSL connect error
解决办法:
在终端输入 git config --global http.sslVerify false //设置跳过SSL证书验证
如果还不行,可能是ssh版本过低需要升级ssh
在终端输入 yum update nss //redhat centos