Git经验帖
转载: https://www.jianshu.com/p/bc5e6b260186
1.在Ubuntu下使用$ git clone时出现server certificate verification failed. CAfile:/etc/ssl/certs/ca-certificates.crt CRLfile: none
解决方法:在执行$ git clone 之前,在终端输入:
export GIT_SSL_NO_VERIFY=1
2.在vpn环境下,使用git下载https项目时,出现了GnuTLS recv error (-9): A TLS packet with unexpected length was received
解决方法:
ifconfig eth0 mtu 1400
GIT_CURL_VERBOSE=1
apt-get install stunnel4
3.从 github 执行 git clone 一个大的项目时提示 error: RPC failed
解决方法:git config http.postBuffer 524288000
To set this gloablly for all remote Git repositories you ever connect to
或者
git config --global http.postBuffer 524288000
另外低版本的git也可能存在此问题,
ubuntu下git升级方法如下:
add-apt-repository ppa:git-core/ppaapt-get updateapt-get dist-upgrade
作者:布布爸
链接:https://www.jianshu.com/p/bc5e6b260186
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
本文来自博客园,作者:dolinux,未经同意,禁止转载

浙公网安备 33010602011771号