我是 Mac 用户。我想使用源代码树将我的 azure
DevOps
存储库克隆到本地。
我所做的是,
Remote
> 在 Azure DevOps 列表中单击我要克隆的存储库的 Clone
我得到了这个窗口。
Source URL
是
https://[电子邮件受保护]/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://[email protected]/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; IE=10; IE=9; IE=8" />
<link rel="SHORTCUT ICON" href="/favicon.ico"/>
...
---%<---
!
fatal: Authentication failed for 'https://[email protected]/ORG_NAME/PROJECT_NAME/_git/REPOSITORY_NAME'
fatal: Authentication failed for 'https://[email protected]/ORG_NAME/PROJECT_NAME/_git/REPOSITORY_NAME'
fatal: Authentication failed for 'https://[email protected]/ORG_NAME/PROJECT_NAME/_git/REPOSITORY_NAME'
fatal: Authentication failed for 'https://[email protected]/ORG_NAME/PROJECT_NAME/_git/REPOSITORY_NAME'
我已经使用
username
和 PAT
将我的 DevOps 帐户添加到 SourceTree,没有任何问题。
如何解决这个问题?
检查 SourceTree 是否使用其嵌入式 Git 版本,或者您自己的“系统”Git。
SRCTREEWIN-9456 和 SRCTREEWIN-9312 报告了 Git 2.19.1 和 GCM 的问题 (Git-Credential-Manager-for-Windows)
如果您的
git config credential.helper
设置为管理器(Windows 凭据管理器),请检查在使用 最新 Git 2.22 Git for Windows 版本时问题是否仍然存在。
尝试将 git config credential.helper 更改为 sourcetree 而不是 osxkeychain:
git config credential.helper sourcetree
尝试从网址中删除 ORG_NAME 以及 '@' ,它必须如下所示: https://dev.azure.com/ORG_NAME/PROJECT_NAME/_git/REPOSITORY_NAME