从SourceTree中的DevOps存储库克隆URL

时间:2019-07-30 02:59:19

标签: git azure-devops atlassian-sourcetree

我是Mac用户。而且我想使用源代码树将天青DevOps的存储库克隆到本地。

我所做的是

  1. 打开SourceTree
  2. Remote>在Azure DevOps列表中单击要克隆的存储库的Clone

然后我看到这个窗口。

enter image description here

Source URL

  

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

当我单击This is not a valid source path / URL时,它说,

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' 

我已经使用usernamePAT将我的DevOps帐户添加到SourceTree中了。

我该如何解决这个问题?

2 个答案:

答案 0 :(得分:0)

检查SourceTree是否使用其嵌入式Git版本或您自己的“系统” Git。
SRCTREEWIN-9456SRCTREEWIN-9312报告了Git 2.19.1和GCM(Git-Credential-Manager-for-Windows)的问题

如果您的git config credential.helper设置为管理员(Windows凭据管理器),请检查使用latest Git 2.22 Git for Windows release时问题是否仍然存在。

答案 1 :(得分:0)

尝试将 git config credential.helper 更改为 sourcetree 而不是 osxkeychain:

git config credential.helper sourcetree