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

Cannot clone a Git Repo using SourceTree and Azure DevOps

Ibrar Mumtaz
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!
November 6, 2018

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

0 votes
Ibrar Mumtaz
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!
November 7, 2018

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


The issues lies with the Git Credentials Manager.

bssindiana
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!
December 1, 2020

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
AUG Leaders

Atlassian Community Events