VisualStudio2019停止推送Git
我有VS Community 2019,我的Git回购协议在Azure DevOps上运行良好。然而VS今天早上更新了,现在由于某种原因它不会推到Git上。看来这一定是问题所在,因为这是我上次推动以来唯一改变的事情。现在,当我尝试推动我的提交时,我得到了以下结果:VisualStudio2019停止推送Git,git,visual-studio,visual-studio-2019,Git,Visual Studio,Visual Studio 2019,我有VS Community 2019,我的Git回购协议在Azure DevOps上运行良好。然而VS今天早上更新了,现在由于某种原因它不会推到Git上。看来这一定是问题所在,因为这是我上次推动以来唯一改变的事情。现在,当我尝试推动我的提交时,我得到了以下结果: > Pushing develop Error encountered while pushing to the remote > repository: Git failed with a fatal error. un
> Pushing develop Error encountered while pushing to the remote
> repository: Git failed with a fatal error. unable to access
> '<<my repo>>':
> error setting certificate verify locations: CAfile: c:/program files
> (x86)/microsoft visual
> studio/2019/community/common7/ide/commonextensions/microsoft/teamfoundation/team
> explorer/Git/mingw32/bin/curl-ca-bundle.crt CApath: none Pushing to
> <<my repo>>
>推送至远程时遇到推送开发错误
>存储库:Git失败,出现致命错误。无法访问
> '':
>设置证书验证位置时出错:CAfile:c:/program files
>(x86)/microsoft visual Studio
>studio/2019/community/common7/ide/commonextensions/microsoft/teamfoundation/team
>explorer/Git/mingw32/bin/curl-ca-bundle.crt CApath:无
>
真正奇怪的是,如果我只是在repo目录下做一个git bash,然后使用git push
它就可以工作了
如何解决此问题?在所有这些情况下,建议升级适用于Windows的Git credential Manager
检查VS更新后路径是否仍然有效(仍然存在):
dir "c:/program files (x86)/microsoft visual studio/2019/community/common7/ide/commonextensions/microsoft/teamfoundation/team explorer/Git/mingw32/bin/curl-ca-bundle.crt"
如果是,请在“c:/ProgramFiles(x86)/microsoft visual studio/
”下搜索另一个curl ca bundle.crt
,以防更新创建了一个新的
还要检查您的git config-l--show origin
只包含一个条目
http.sslcainfo=/ssl/certs/ca-bundle.crt
如果文件
curl ca bundle.crt
不存在于:
c:/program files (x86)/microsoft visual studio/2019/community/common7/ide/commonextensions/microsoft/teamfoundation/team explorer/Git/mingw32/bin/curl-ca-bundle.crt
尝试从本地git安装复制CRT文件
使用命令提示符运行git config-l--show origin。查找条目http.sslcainfo=/ssl/certs/ca bundle.crt
。将文件ca bundle.crt
复制到visual studio目录。/team explorer/Git/mingw32/bin/
并将其重命名为curl ca bundle.crt
重新启动Visual Studio,然后再次尝试推送。很抱歉响应太晚。我发了帖子,然后不得不灭火,然后放假。。。无论如何,谢谢你!需要做更多的实验,以确保它是完全固定的,但http.sslcainfo根本没有设置。我设置了它,现在似乎可以工作了。我也遵循了这一点,更新了GCMW,并指出Git使用了这一点,所以这可能是解决方案的一部分。然而,仅仅这样做之后,它仍然失败,当我将sslca设置为上面的状态时,它开始工作。投票寻求帮助,但回答VonC。非常感谢。对于不想升级的人,只需转到凭据管理器并记录与Git/Azure Devops相关的所有当前帐户