Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Connect to Azure devops repo using sourcetree on MacOS

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?

like image 947
taigi100 Avatar asked Jan 17 '19 13:01

taigi100


People also ask

How do I connect to Azure DevOps from SourceTree?

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.

How do I connect my Azure DevOps to my Mac?

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.

How do I connect to Azure DevOps repository?

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.


1 Answers

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}
like image 57
maf-soft Avatar answered Oct 11 '22 09:10

maf-soft