git clone时gnutls_handshake() failed错误

转载自:https://www.bswen.com/2021/11/how-to-solve-github-https-clone-error.html

方法一

git config --global http.sslVerify false

方法二

将https链接改为http

git clone https://github.com/boylegu/SpringBoot-vue.git # 修改前
git clone http://github.com/boylegu/SpringBoot-vue.git # 修改后

方法三

重新编译git

sudo apt-get update
sudo apt-get install build-essential fakeroot dpkg-dev
sudo apt-get build-dep git
mkdir ~/git-openssl
cd ~/git-openssl
apt-get source git
dpkg-source -x git_1.7.9.5-1.dsc
cd git-1.7.9.5
posted @ 2022-05-13 12:20  kervias  阅读(57)  评论(0)    收藏  举报

Loading