I've created a new project on azure devops and now I'm trying to add an account to sourcetree:
I've setup the opions in the following way:
Host: Azure devops
Link next to Host: https://[email protected]/myuser
Also tried with https://dev.azure.com/myuser
Auth Type: It's locked to private token, can't change it.
Username: Tried with my email, also enabled alternative credentials and tried with that username.
Password: Tried with the real password as well as the personal access token
Protocol: HTTPS
I keep getting the error: We couldn't connect to Azure DevOps with your credentials.
What could be the cause of this?
On Source Tree, go to add account and select Azure DevOps. for the host, I used https://{organisation}.visualstudio.com as the new URL format for azure DevOps didn't work. enter the generated PAT as username. use the PAT you just generated for the password as well.
Connecting to Azure DevOpsLogged on to the Azure DevOps Portal, click on Repos (Item 1), select the desired repo from the list of available repos (Item 2), and after selecting it, click on Clone (Item 3). In the new blade, click on Get Git Credentials and copy the content of the Password. Click on Clone in VS Code.
Connect to a Project shows the projects you can connect to, along with the repos in those projects. Select Add Azure DevOps Server to connect to a project in Azure DevOps Services. Enter the URL to your server and select Add. Select a project from the list and select Connect.
I was successful with Preferences/Accounts/Azure DevOps
https://dev.azure.com/{organisation}/
{username}
{token}
HTTPS
and using this remote url
https://{username}@dev.azure.com/{organisation}/{projectname}/_git/{repository}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With