問題1:
git pull的時候出現文件過大沒法下拉代碼的問題git
現象:
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: The remote end hung up unexpectedly
fatal: protocol error: bad pack headergithub
解決方法:
方法一:在終端輸入 git config http.postBuffer 524288000000 //設置能夠下拉大小
方法二:使用ssh方式下拉代碼centos
問題2:
git clone的時候出現ssl connect errorssh
現象:
fatal: unable to access 'https://github.com/***/***': SSL connect errorcurl
解決辦法:post
在終端輸入 git config --global http.sslVerify false //設置跳過SSL證書驗證url
若是還不行,多是ssh版本太低須要升級sshspa
在終端輸入 yum update nss //redhat centos ssl