方法一:
上网查了说是代理设置的问题,后面重新设置代理再取消也没有效果,找到这篇文章,执行了这行命令才成功:
- 进入仓库对应目录,执行如下命令:
git remote set-url origin git@github.com:xxx/xxx.git
- 重新执行git pull 命令
git pull origin main
参考文章:https://blog.hyperzsb.tech/git-ssl-error/
方法二:
切换VPN:https://www.crifan.com/mac_git_push_fatal_unable_to_access_https_github_libressl_ssl_error_syscall/