Connecting Sourcetree with Azure DevOps Repository

Randula Koralage
2 min readOct 14, 2020

--

There are different ways to access Azure DevOps repositories. Accessing Azure DevOps using Visual Studio is very easy and it is the most used way. Earlier I discussed how to connect Azure DevOps Repo with Visual Studio Code. But the Azure Repos VS Code extension is going to close on 2020–11–06. So we can use the source tree to act in between vs code and the repository.

You can follow the below steps to connect the Azure DevOps repository through Sourcetree

  1. Open Sourcetree
  2. Click on Remote and then Add an account

3. Select Azure DevOps as a hosting service.

3.1 To the Host URL, you should use the following format
https://*username*.visualstudio.com
Username means your account name
(https://dev.azure.com/*username*)

3.2 Click on Refresh Personal Access Token

Put the account name as the user name. The password should be the PAT you generated from the AzureDev Ops account

3.3 After click OK, you will see Authentication Success.

Then again click OK to close the dialog box. Now you can see your projects in the Azure DevOps repository.

4 Give the local location to clone the project and Clone

Now you are ready with your project!

--

--

Randula Koralage
Randula Koralage

Responses (1)