【发布时间】:2016-02-02 09:54:59
【问题描述】:
我尝试访问托管在 VS Team Services 上的 git 存储库。在 Visual Studio 中工作正常,但我需要使用标准 git 客户端从命令行访问。
当我尝试执行 pull 之类的命令时,系统会要求我提供凭据。现在我的问题是我的凭据是使用我的电子邮件和密码的 MSDN 帐户数据。
在 git 命令行中输入我的电子邮件后,我可以看到它尝试构建一个密码 URL,但由于地址中有两个“@”而无法工作:
git clone https://myproject.visualstudio.com/DefaultCollection/_git/coderepo
Username for 'https://myproject...': myself@mydomain.com
Password for 'https://myself@mydomain.com@myproject...' :
输入密码后,我收到(毫不奇怪)“致命:身份验证失败”
那么:如何在 git 中使用电子邮件作为用户名凭据?
【问题讨论】:
-
无关:你会对this感兴趣,以避免每次都输入它们。
标签: git azure-devops