git - Visual Studio 2017 - Git 因 fatal error 而失败

标签 git visual-studio azure-devops visual-studio-2017

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

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

相应地对于 fetch 和 pull 命令也是如此。

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

Visual Studio 2015 Enterprise Edition (EE) 和 CE 对我来说完全没问题。

似乎这个问题得到了更多的认可,这让我相信这是 Visual Studio 如何处理 Git 的问题。我还注意到,每次我更新 Visual Studio 时,这个问题都会重新出现,我必须完成下面一些答案中的步骤才能让 Git 再次工作。我不确定为什么会这样,我也不知道 Microsoft 是否计划解决这个问题。

最佳答案

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

Enter image description here

关于git - Visual Studio 2017 - Git 因 fatal error 而失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42667928/

相关文章:

azure - 在 Azure Devops 中,有没有办法使构建/工作目录在作业之间持久存在?

git gui 可以很好地显示分支

git - 如何在git中存储未 merge 的代码?

visual-studio - 请告诉我如何在 Visual Studio 中停止连续搜索

visual-studio - 连接到 Visual Studio Online 构建/测试任务中的外部服务

linux - Bash 无法正确执行 '@' 字符

Git:批量更改提交日期

git - 将分支 "tag"移动到其他提交?

c# - 使用 .NET 编译器以 ARM 架构为目标

c# - 无法在 Visual Studio 2012 中安装任何 NuGet