无法使用 Git Bash 向 Visual Studio Team Services 进行身份验证 [英] Unable to authenticate with Git Bash to Visual Studio Team Services

查看:30
本文介绍了无法使用 Git Bash 向 Visual Studio Team Services 进行身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于身份验证失败,我无法在 Visual Studio Team Services (VSTS) 上对我的远程存储库运行任何命令.

I am unable to run any commands against my remote repository at Visual Studio Team Services (VSTS) because authentication fails.

我可以通过 Visual Studio 执行拉取等操作.但只能通过 Visual Studio.不是通过 Git Bash 或任何其他工具,例如 SourceTree.

I am able to do pulls, etc. through Visual Studio. But only through Visual Studio. Not through Git Bash, or any other tool like SourceTree.

推荐答案

如果你想在 Visual Studio 之外使用其他 Git 客户端,你需要启用 Alternate Authentication Credentials...

You need to enable Alternate Authentication Credentials if you want to use other Git clients outside of Visual Studio...

要在 Visual Studio Team Services (VSTS) 中设置备用凭据,请单击右上角的姓名/图标 -> 安全性 -> 备用身份验证凭据

To set up alternate creds in Visual Studio Team Services (VSTS), click on your name/icon on the top right -> Security -> Alternate Authentication Credentials

从 VSTS 添加更多详细信息(取自备用凭据屏幕)...

Add more details about this from VSTS (taken from the alternate credentials screen)...

备用身份验证凭据

一些在浏览器之外运行的应用程序(包括 TeamExplorer Everywhere 命令行客户端和 git-tf 实用程序)需要基本的身份验证凭据.其他应用程序不正确处理使用电子邮件地址作为用户名期间身份验证.

Some applications that work outside the browser (including Team Explorer Everywhere command line client and the git-tf utility) require basic authentication credentials. Other applications do not properly handle using an e-mail address for the user name during authentication.

要使用这些应用程序,您需要启用备用凭据,设置密码,并可选择设置辅助用户名不是电子邮件地址的形式.请注意,备用凭据不能用于从 Web 登录到服务浏览器或这些应用程序之外.

To work with these applications, you need to enable alternate credentials, set a password, and optionally set a secondary user name not in the form of an e-mail address. Please note that alternate credentials cannot be used to sign in to the service from a web browser or outside of these applications.

这篇关于无法使用 Git Bash 向 Visual Studio Team Services 进行身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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