gitazure-devopsatlassian-sourcetree

Cloning URL from DevOps Repository in SourceTree


I am a Mac User. And I'd like to clone my repository of azure DevOps to local using source tree.

What I did is,

  1. opening SourceTree
  2. Remote > Click Clone of the repository I want to clone in the list of Azure DevOps

And I get this window.

enter image description here

The Source URL is

https://ORG_NAME@dev.azure.com/ORG_NAME/PROJECT_NAME/_git/REPOSITORY_NAME

When I click This is not a valid source path / URL, It says,

real URL is https://spsprodea1.vssps.visualstudio.com/_signin?
...abort: 'https://ORG_NAME@dev.azure.com/ORG_NAME/PROJECT_NAME/_git/REPOSITORY_NAME' does not appear to be an hg repository:
---%<--- (text/html; charset=utf-8)


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">




<html lang="en-US">
<head><title>

            Azure DevOps Services | Sign In

</title><meta http-equiv="X-UA-Compatible" content="IE=11;&#32;IE=10;&#32;IE=9;&#32;IE=8" />
    <link rel="SHORTCUT ICON" href="/favicon.ico"/>
...

---%<---
!
fatal: Authentication failed for 'https://ORG_NAME@dev.azure.com/ORG_NAME/PROJECT_NAME/_git/REPOSITORY_NAME' 
fatal: Authentication failed for 'https://ORG_NAME@dev.azure.com/ORG_NAME/PROJECT_NAME/_git/REPOSITORY_NAME' 
fatal: Authentication failed for 'https://ORG_NAME@dev.azure.com/ORG_NAME/PROJECT_NAME/_git/REPOSITORY_NAME' 
fatal: Authentication failed for 'https://ORG_NAME@dev.azure.com/ORG_NAME/PROJECT_NAME/_git/REPOSITORY_NAME' 

I already added my DevOps account to SourceTree using username and PAT without any problems.

How can I solve this issue?


Solution

  • Check if SourceTree is using its embedded Git version, or your own "System" Git.
    SRCTREEWIN-9456 and SRCTREEWIN-9312 reported issues with Git 2.19.1 and GCM (Git-Credential-Manager-for-Windows)

    If your git config credential.helper is set to manager (the Windows Credential Manager), check if the issue persists when using the latest Git 2.22 Git for Windows release.