简体   繁体   English

无法使用 Sourcetree 克隆存储库

[英]Can't clone a repository using Sourcetree

I'm trying to setup Sourcetree from scratch, I created Sourcetree and Bitbucket accounts, created a new Bitbucket repository and trying to clone it.我正在尝试从头开始设置 Sourcetree,我创建了 Sourcetree 和 Bitbucket 帐户,创建了一个新的 Bitbucket 存储库并尝试克隆它。 But 'checking source" newer ends and I see a popup "CredentialHelperSelector", what should I do with it?但是“检查源”更新结束,我看到一个弹出窗口“CredentialHelperSelector”,我应该怎么办?

在此处输入图像描述

I tried following these steps :我尝试按照以下步骤操作

  1. Tools > Options > Git > Update Embedded Git - I made this工具 > 选项 > Git > 更新嵌入式 Git - 我做了这个
  2. I couldn't do the Latisha's answer part because there is no Atlassian folder in my AppData\Local\我无法完成 Latisha 的回答部分,因为我的 AppData\Local\ 中没有 Atlassian 文件夹

Using SourceTree 3.4.8 installed on a clean Windows 11 in a virtual machine, I get the credential helper selection dialog.在虚拟机中使用安装在干净的 Windows 11 上的 SourceTree 3.4.8,我得到了凭证助手选择对话框。

I found out that selecting "manager-core" from the list and checking always use was the solution.我发现从列表中选择“manager-core”并检查始终使用是解决方案。 If the popup comes again, selecting the second option "manager-core" was definitive.如果弹出窗口再次出现,则选择第二个选项“manager-core”是确定的。 I don't know why there are several options with the same name, but the second one was the solution.我不知道为什么有几个同名的选项,但第二个是解决方案。

Also since I was cloning a repository (with https) from bitbucket, I also had to connect to my account in Tools > Options > Authentication > Add > select HTTPS and OAuth, Refresh OAuth Token.此外,由于我从 bitbucket 克隆存储库(使用 https),我还必须在工具 > 选项 > 身份验证 > 添加 > select HTTPS 和 OAuth 中连接到我的帐户,刷新 OAuth 令牌。

For Windows, you should select "manager-core", then enter your credentials (Bitbucket user account name and password).对于 Windows,您应该选择“manager-core”,然后输入您的凭据(Bitbucket 用户帐户名和密码)。

Then your credentials would be cached and would not be asked again next time you open SourceTree and try to push to your remote repository.然后您的凭据将被缓存,下次您打开 SourceTree 并尝试推送到您的远程存储库时不会再次询问您的凭据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM