Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can't clone from Azure DevOps

brendan.cockman
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 10, 2023

I cannot clone an Azure DevOps repository for source tree through the UI. I can clone through the terminal, but even after adding the local repositorey to sourcetree it fails.

I have also tried using a PAT and crfeating a remote account - the account is added fine and I can browse repositories but when I select Clone I get the same error: Access is denied.

Why is access denied when it's already authenticated using PAT?
If I copy git the comand in the error screen into the terminal it works fine - only fails in the UI (latest version 3.4.15).

I have tried clearing credentials, deleting accounts, re-installing source tree, using embedded and system git. All fail with the same problem.

Other clients (git fork, visual studio and vs-code) all clone with no problems, but I am more familiar with sourcetree. Any help would be appreciated

1 answer

0 votes
Martin Runge
Community Champion
June 23, 2026

Hi @brendan.cockman

Welcome to the Atlassian community!

The most common cause for this is a stale credential in Windows Credential Manager. I would open Control Panel > User Accounts > Credential Manager > Windows Credentials and remove every entry referencing azure or visualstudio.

After that, you can try cloning with the PAT embedded directly in the URL: https://<your-pat>@dev.azure.com/...

You should also verify your PAT has the Code (Read) scope enabled, as a missing scope will produce the same "Access is denied" error even with valid credentials.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events