visual-studio-code - 无法从 VSOnline 克隆 Azure DevOps 存储库

标签 visual-studio-code azure-devops tfvc azure-repos

我正在尝试使用 Azure Repos 扩展 ( https://online.visualstudio.com/environments ) 将存储库克隆到 Visual Studio Code Online(Chrome 浏览器)上的工作区:

enter image description here

当我尝试执行Team: Signin 命令时,出现错误:

enter image description here

当我尝试从终端克隆存储库时,我得到:

vsonline:~/workspace$ git clone https://dev.azure.com/MyOrganization/MyProject/_git/MyApp
Cloning into 'MyAppApp'...
Username for 'https://dev.azure.com': <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1e73677b737f77725e73677d71736e7f7067307d7173" rel="noreferrer noopener nofollow">[email protected]</a>
Password for 'https://<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="24495d4149454d4864495d474b4954454a5d0a474b49" rel="noreferrer noopener nofollow">[email protected]</a>@dev.azure.com': 
fatal: Authentication failed for 'https://dev.azure.com/MyOrganization/MyProject/_git/MyApp'

我在桌面上的 VS Code 中进行此设置没有问题,我做错了什么?

最佳答案

我已经研究了好几天了,终于成功破解了它。 1. 在 vscode 中选择克隆 2. 它将要求您在新的 vscode 窗口中打开,因此单击"is" 3. 前往 devOps 并单击“生成 git 凭证” 4. 复制长密码并将其粘贴到 vscode 中的上方密码字段提示中

这对我来说非常有效,编码愉快吗?

关于visual-studio-code - 无法从 VSOnline 克隆 Azure DevOps 存储库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59270853/

相关文章:

javascript - TypeScript – Visual Studio Code – 编译后不输出 2 个空格选项卡

python - 使用 python 脚本在 azure 上创建存储时出错,获取错误消息 "TypeError: __init__() takes exactly 1 argument (2 given)"

azure-devops - 有没有办法在 Liquibase 数据库版本控制中包含带有更改日志的整个文件夹?

tfs - Team Foundation Server 中的 "Excluded Changes"是什么?

visual-studio - TFS 回滚与 "Get This Version"

javascript - Eslint 规则/Vscode 设置防止导入没有索引的文件夹

visual-studio-code - 安装在 Program Files 中的 Windows VS Code(用户)

typescript - 如何在 VSCode 中默认使用 settings.json 中定义的 TypeScript 版本?

Azure Pipelines 代理代理设置未按预期工作

git - 在一个解决方案中同时使用 TFVC 和 GIT-TFS