是由于Homebrew长期没有更新,导致本地证书过期。
报错:
curl: (60) SSL certificate problem: certificate has expired
More details here: curl - SSL CA Certificates
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
解决:
echo insecure >> ~/.curlrc
HOMEBREW_CURLRC=1
export HOMEBREW_CURLRC
#brew install git
测试访问: