Big*_*Pin 5 git azure azure-devops visual-studio-2019
我们使用 Azure Devops 作为 git 存储库,之前我们经常遇到一个问题,即我们会收到“终端提示已禁用”错误。当我们升级到 Visual Studio (2019) 版本 16.8.1 时,这个问题就消失了,一切看起来都很好。然而,在这个版本大约两周后,我和我们的其他一些开发人员现在收到了这个错误:
Failed to push to the remote repository. See the Output window for more details.
Updating 7df912b..b4954c1
Git failed with a fatal error.
Failed to write item to store. [0x520]
A specified logon session does not exist. It may already have been terminated
POST git-upload-pack (909 bytes)
remote: Azure Repos
remote:
remote: Found 12 objects to send. (9 ms)
From https://dev.azure.com/myOrg/_git/myApp
7df971b..b4958c1 master -> origin/master
Run Code Online (Sandbox Code Playgroud)
有时它也会说失败并检查输出窗口。当我去检查错误时,它会在输出窗口本身中显示“检查输出窗口”,而没有进一步的错误消息。我尝试清除 AppData 中的 git credentialtenant.cache 文件和 IdentityService 文件夹,但没有运气。但最奇怪的是,所有的推和拉似乎仍然有效。有人经历过这些错误吗?
我遇到了同样的问题,在更新到版本 16.8.1 时出现,并在更新到 16.8.2 后继续出现。我可以通过转到“工具”>“选项”>“源代码管理”>“Git 全局设置”并将“凭据助手”值从“取消设置”更改为“GCM for Windows”来解决此问题。
您可以尝试以下可能的解决方法。
\n1、可能是Visual Studio自带的git版本导致的。
\n您可以将 Visual Studio git 扩展替换为最新的 git 版本:
\n导航C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer\\Git--> 删除 Git 文件夹
下载最新的 Git 版本并将其安装到上述文件夹C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer\\Git
或者您可以尝试修改您的 Visual Studio 以使用Windows 版 Git:
\n..\\TeamFoundation\\Team Explorer\\Git。2、从凭证管理器中清除缓存的凭证。然后再试一次。
\n转到凭据管理器--> Windows 凭据--> 删除所有与 Git 相关的凭据。
\n3、您还可以尝试从 Visual studio 重新连接到 azure devops 项目。
\n转到团队资源管理器--> 右键单击您的 azure devops 项目,然后单击删除 --> 单击管理连接以重新连接到您的 azure git 存储库。
\n\n4、删除注册表中缓存的凭据。
\n打开注册表编辑器--> 导航以Computer\\HKEY_CURRENT_USER\\Software\\Microsoft\\VSCommon\\14.0\\ClientServices\\TokenStorage\\VisualStudio\\VssApp删除 VssApp 内的所有条目。
| 归档时间: |
|
| 查看次数: |
4495 次 |
| 最近记录: |