我有VS Community 2019,并且我在Azure DevOps上的Git存储库一切正常。但是VS今天早上更新了,现在由于某种原因它不会推送到Git。看来这一定是问题所在,因为这是自上次推送以来唯一发生的变化。现在,当我尝试推送我的提交时,我得到以下信息:
> 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>>
真正奇怪的部分是,如果我只是在repo目录中执行git bash并使用git push
,它将起作用...
我该如何解决?
在所有这些情况下,建议升级Windows版Git凭据管理器。
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"
如果是,请在“
curl-ca-bundle.crt
”下搜索另一个c:/program files (x86)/microsoft visual studio/
,以防更新创建了新的C0。
还检查您的git config -l --show-origin
仅包含一个条目
http.sslcainfo=/ssl/certs/ca-bundle.crt