Reputation: 186
I'm trying to clone a git repository from azure devops but when I run the following command the authentication fails.
git clone https://myazuredevopsemail:[email protected]/OrganizationName/RepoName/_git/RepoName
Am I doing this wrong? How can I clone using only my visualstudio.com credentials? I assume this must be possible because when I exclude the username (email) and password from the above url and simply do a git clone, a 'git credentials' pop-up opens up and I am able to successfully login with my email and password.
Please note that I cannot use Personal Access Tokens or SSH keys for my use-case, since PATs and SSH keys are per-organization in the azure devops authentication model. Whereas I'm writing a script that runs the git clone command for many different organizations (all of whom my visualstudio account has access to)
Upvotes: 2
Views: 4418
Reputation: 1
Instead of myazuredevopsemail
use your devops username.
The issue with the email address is it contains the @
symbol and the URL decoder thinks that your email domain is the devops domain (and then is presented with another @
for the actual devops domain).
Upvotes: 0