Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
禁用";“登录您的帐户”;Windows上的in-Git身份验证_Git_Authentication_Windows 10_Azure Devops_Credentials - Fatal编程技术网

禁用";“登录您的帐户”;Windows上的in-Git身份验证

禁用";“登录您的帐户”;Windows上的in-Git身份验证,git,authentication,windows-10,azure-devops,credentials,Git,Authentication,Windows 10,Azure Devops,Credentials,我最近在一台使用Windows 10的新计算机上安装了Git for Windows/Git scm,并尝试像我习惯的那样设置credential.helper=wincred。但是,每当我与远程设备通信时,我都会看到一个“登录到您的帐户”对话框(托管在git credential manager.exe中),该对话框似乎与Microsoft在Visual Studio中使用TFS/Visual Studio Team Services(以前的Visual Studio Online)时推送的基

我最近在一台使用Windows 10的新计算机上安装了Git for Windows/Git scm,并尝试像我习惯的那样设置
credential.helper=wincred
。但是,每当我与远程设备通信时,我都会看到一个“登录到您的帐户”对话框(托管在git credential manager.exe中),该对话框似乎与Microsoft在Visual Studio中使用TFS/Visual Studio Team Services(以前的Visual Studio Online)时推送的基于HTML的对话框相同:


我怎样才能禁止这个对话框出现?当我可以在命令提示符下进行操作(并让cred helper存储它以供后续验证)时,让缓慢的对话框弹出并执行多个步骤来输入电子邮件地址、等待重定向,然后最后输入密码是毫无意义的.

您遇到的可能是(GCM)。GCM与最新版本的Git for Windows捆绑在一起,并在安装过程中默认启用

GCM的
git config
credential.helper=manager
,如果您运行以下命令

git config --list --show-origin
您可能会看到
credential.helper
设置为manager,并且可以禁用相同的设置


另一方面,关于这一点的评论没有意义,传统的
wincred
store无法处理多因素身份验证,这对于VSO/VSTS或GitHub来说是非常常见的(也是推荐的)。GCM的交互式对话框旨在处理此问题(在内部,GCM仍然使用Windows凭据管理器存储收到的令牌)。

感谢您提供更深入的了解。我不明白的是,
git config[--global]--list
并没有显示此设置确实是在mingw64文件夹中设置的,而且实际上,即使直觉上不应该这样做。对于Tortoise git,我通过凭据设置下的设置UI将其禁用,将凭据管理器设置为非要禁用此功能,请从提升的命令提示符(Windows键>cmd,右键单击cmd,以管理员身份运行)运行以下命令或git bash提示符,然后键入:git config--edit--system,然后使用箭头键导航到显示:helper=manager的行,并通过按两次d键将其删除。然后按escape键保存文件,然后键入!然后按回车。@Dickymore我想你的意思是:wq,不是!wq。