cross posting the discussion post: https://github.com/github/feedback/discussions/7955
I've seen this: #4151.
It requires having Visual Studio locally. For me, it defeats the purpose of having codespaces.
I tried a workaround in the form of adding my ADO repo as a remote. Here's the sanitized git log:
> 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>/'
There doesn't seem to be a way for me to add my ADO git credentials to the codespace. I've tried creating a credentials store via git config --global credential.helper store
and then doing a git pull
but the username/password prompt never shows up.
Is this something I'm doing wrong or maybe there's some sort of Ubuntu permissions thing I'm screwing up or is there something baked into the codespaces image that prevents this sort of operation?
The real question is what kind of steps do I need to take in order to add my ADO repo as a remote to a codespaces vscode?