我是Mac用户。而且我想使用源代码树将天青DevOps
的存储库克隆到本地。
我所做的是
Remote
>在Azure DevOps列表中单击要克隆的存储库的Clone
然后我看到这个窗口。
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; IE=10; IE=9; 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'
我已经使用username
和PAT
将我的DevOps帐户添加到SourceTree中了。
我该如何解决这个问题?
答案 0 :(得分:0)
检查SourceTree是否使用其嵌入式Git版本或您自己的“系统” Git。
SRCTREEWIN-9456和SRCTREEWIN-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