git clone 报错fatal: unable to access ‘https://github.com/xxx/xxx.git/‘: SSL certificate problem: ...

When cloning the code on github locally, an error occurs:

$ git clone https://github.com/HalfStackDeveloper/FloatBall.git -b master
Cloning into 'FloatBall'...
fatal: unable to access 'https://github.com/HalfStackDeveloper/FloatBall.git/': SSL certificate problem: unable to get local issuer certificate

If you encounter the following command, clone it again to solve the problem

git config --global http.sslverify false

Cloning successful

$ git clone https://github.com/HalfStackDeveloper/FloatBall.git -b master
Cloning into 'FloatBall'...
remote: Enumerating objects: 270, done.
remote: Total 270 (delta 0), reused 0 (delta 0), pack-reused 270
Receiving objects: 100% (270/270), 16.74 MiB | 3.52 MiB/s, done.
Resolving deltas: 100% (89/89), done.

Guess you like

Origin blog.csdn.net/xiaoyu_wu/article/details/131468521