Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Cannot clone a Git Repo using SourceTree and Azure DevOps

Edited

I am using the latest version of SourceTree and Git for Windows.

 

I can successfully add my Azure DevOps account to SourceTree using a personal access token and navigate all of the repos hosted remotely. When pick one to clone ... i run into the same issue time and time ago. Even if I clone it directly without using a VSTS account:

ERROR:

Command: perl.exe C:\Users\{me}\AppData\Local\SourceTree\app-3.0.8\tools\svn.pl info https://work.visualstudio.com/work%20work/_git/PureApi
Output:
Error: System.ComponentModel.Win32Exception: The system cannot find the file specified

Command: git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks ls-remote https://work.visualstudio.com/work%work/_git/PureApi
Output:
Error: fatal: ArgumentException encountered.
An item with the same key has already been added.
fatal: ArgumentException encountered.
An item with the same key has already been added.
fatal: Authentication failed for 'https://work.visualstudio.com/wprk%20work/_git/PureApi/'

 

Other

I can clone a repo as normal using GitBash but then when I add the local repo to SourceTree it run into the same issues when I try do a fetch.

1 answer

Reverted back to Git for Windows version 2.17.1.2 and this did the trick.


The issues lies with the Git Credentials Manager.

For my case also I am getting the similar error:

My Azure Repo account has been added successfully in Sourcetree using PAT.

Still below message is displayed when trying to clone.

 

Command: git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks ls-remote https://ABCDaaS@dev.azure.com/ABCDaaS/CompOne/_git/PXXXX-AutomationFramework
Output:
Error: fatal: unable to access 'https://dev.azure.com/ABCDaaS/CompOne/_git/PXXXX-AutomationFramework/': Failed to connect to dev.azure.com port 443: Timed out

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

5,692 views 4 12
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you