无法使用Git Bash验证Visual Studio Team Services的身份 [英] Unable to Authenticate with Git Bash to Visual Studio Team Services

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

问题描述

我无法在Visual Studio Team Services(VSTS)上针对远程存储库运行任何命令,因为身份验证失败。



我可以通过VS 。但只能通过VS.不是通过GIT bash,或任何其他工具,如SourceTree。

解决方案

如果您想使用其他工具,则需要启用Alternate Authentication Credentials在Visual Studio以外的Git客户端......



要在Visual Studio Team Services(VSTS)中设置备用信用卡,请点击右上角的名称/图标 - >安全 - >备用身份验证证书



编辑:从VSTS添加更多关于此信息的细节(从备用凭证屏幕取得)...


备用认证凭证

一些在浏览器外部工作的应用程序(包括Team
Explorer Everywhere命令行客户端和git-tf实用程序)
需要基本身份验证凭据。其他应用程序不会

身份验证期间正确处理使用用户名的电子邮件地址。



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



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

I am able to do Pulls etc through VS. But only through VS. Not through GIT bash, or any other tool like SourceTree.

解决方案

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

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

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

ALTERNATE AUTHENTICATION CREDENTIALS

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.

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天全站免登陆