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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.