VS 2017 - Git发生致命错误失败 [英] VS 2017 - Git failed with a fatal error

查看:692
本文介绍了VS 2017 - Git发生致命错误失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用VS2017CE,并且已登录到我的Microsoft帐户,并且已连接到VSTS。我可以看到我所有的项目和存储库,但是当我尝试拉/取/推任何更改时,出现以下错误:

 推送到远程存储库时遇到错误:Git因致命错误而失败。 
PushCommand.ExecutePushCommand

对于提取和拉取命令也是如此。



我在VS2017安装程序中安装了Git for windows,不仅无法使用VSTS,还无法使用我的任何Github存储库。有没有其他人注意到这一点?它发生在我的两台机器上。



VS2015EE和CE对我来说工作得很好。

编辑:看来这个问题已经得到了更多的认可,我认为这会导致我相信这是VS如何处理Git的问题。我也注意到,每次我更新Visual Studio时,这个问题都会弹出来,我必须通过下面一些答案中的步骤来让Git再次运行。我不知道为什么会发生这种情况,我也不知道微软是否打算解决这个问题。

解决方案

我有一个不同的问题。我的电脑在system32和syswow64中包含了较旧的OpenSSL DLL,因此为了解决我的问题,我必须复制 libeay32.dll ssleay32.dll

FROM: C:\程序文件(x86)\\ c $ \\>从一个文件夹到另一个文件夹中的VS2017的GIT文件夹中。 \\ Microsoft Visual Studio \2017 \ vs_edition \ Common \ IDE \ Common Extension \ Microsoft \\ \\Git\mingw32\bin\



TO: C:\程序文件(x86)\\ \\ Microsoft Visual Studio \2017 \ vs_edition \ Common \ IDE \ Common Extension \ Microsoft \\ \\ git\mingw32\libexec\git-core



REF: https://developercommunity.visualstudio.com/content/pro blem / 19752 / git-cant-clone-remote-repository.html


I am using VS2017CE and I have signed into my Microsoft account and I am connected to VSTS. I can see all my projects and repositories but when I attempt to pull/fetch/push any changes I get the following error:

Error encountered while pushing to the remote repository: Git failed with a fatal error.
PushCommand.ExecutePushCommand

And accordingly for the fetch and pull commands too.

I installed Git for windows on the VS2017 installer and not only is it failing to work with VSTS, I am unable to work with any of my Github repositories too. Has anyone else noticed this? It's happened on two of my machines so far.

VS2015EE and CE work completely fine for me.

Edit: It seems that this issue has gotten far more recognition that I thought it would which leads me to believe that this is an issue with how VS is dealing with Git. I have also noticed that every time I update Visual Studio, this problem pops back up and I have to go through the steps in some of the answers below to get Git working again. I'm not sure why this is happening and I also don't know if Microsoft are planning to resolving this issue.

解决方案

I had a different problem. My computer contained older OpenSSL DLLs in system32 and syswow64 so to fix my problem, I had to copy libeay32.dll and ssleay32.dll from one folder to another folder within the GIT-folders of VS2017.

FROM: C:\Program Files (x86)\Microsoft Visual Studio\2017\vs_edition\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw32\bin\

TO: C:\Program Files (x86)\Microsoft Visual Studio\2017\vs_edition\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw32\libexec\git-core

REF: https://developercommunity.visualstudio.com/content/problem/19752/git-cant-clone-remote-repository.html

这篇关于VS 2017 - Git发生致命错误失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆