0

交叉发布讨论帖:https ://github.com/github/feedback/discussions/7955

我见过这个:#4151

它需要在本地拥有 Visual Studio。对我来说,它违背了拥有代码空间的目的。

我尝试了一种解决方法,将我的 ADO 存储库添加为遥控器。这是经过清理的 git 日志:

> git remote add ado https://<organization>@dev.azure.com/<organization>/<project>/_git/<repository>
> git status -z -u
> git symbolic-ref --short HEAD
> git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track) refs/heads/feature/tf-static-web-site refs/remotes/feature/tf-static-web-site
> git for-each-ref --sort -committerdate --format %(refname) %(objectname) %(*objectname)
> git remote --verbose
> git config --get commit.template
> git fetch ado
> git config --local branch.feature/tf-static-web-site.github-pr-owner-number
fatal: Authentication failed for 'https://dev.azure.com/<organization>/<project>/_git/<repository>/'

我似乎没有办法将我的 ADO git 凭据添加到代码空间。我尝试通过创建凭据存储git config --global credential.helper store然后执行git pull但用户名/密码提示从未出现。

这是我做错了什么,还是我搞砸了某种 Ubuntu 权限,或者代码空间图像中是否有一些东西阻止了这种操作?

真正的问题是我需要采取什么样的步骤才能将我的 ADO 存储库作为远程代码空间 vscode 添加?

4

0 回答 0