在vs2022中,通过git推送代码到远端服务器时,报如下错误:
发布到远程仓库时遇到错误: Git failed with a fatal error.
Git failed with a fatal error.
unable to access 'https://gitee.com/xxxx': schannel: CertGetCertificateChain trust error CERT_TRUST_REVOCATION_STATUS_UNKNOWN
但我直接在命令行用git push 推送又能成功,说明我的用户/密码都是正确的。
问题解决:
在工具->选项->源代码管理->Git 全局设置中,
把加密网络提供程序设置为:OpenSSL
解决问题!