Visual Studio 2017-Git失败并出现致命错误 [英] Visual Studio 2017 - Git failed with a fatal error

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

问题描述

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

I am using Visual Studio 2017 Community Edition (CE), 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

因此,对于fetch和pull命令也是如此.

And accordingly for the fetch and pull commands too.

我在Visual Studio 2017安装程序上安装了Windows版Git,不仅无法使用VSTS,而且也无法使用任何GitHub存储库.有没有其他人注意到这一点?到目前为止,这已经发生在我的两台机器上.

I installed Git for Windows on the Visual Studio 2017 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.

Visual Studio 2015 Enterprise Edition(EE)和CE完全适合我.

Visual Studio 2015 Enterprise Edition (EE) and CE work completely fine for me.

似乎这个问题已经得到我的认可,这使我相信这是Visual Studio如何处理Git的问题.我还注意到,每次更新Visual Studio时,都会弹出此问题,我必须仔细阅读以下某些答案中的步骤,才能使Git再次工作.我不确定为什么会这样,而且我也不知道微软是否计划解决此问题.

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 Visual Studio 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.

推荐答案

控制面板用户帐户凭据管理器更改了通用凭据后, Git ,它对我有用.

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

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