【问题标题】:Bitbucket cannot checkout repository in SourcetreeBitbucket 无法在 Sourcetree 中签出存储库
【发布时间】:2017-11-16 17:55:09
【问题描述】:

我最近更改了密码,无法在 Sourcetree 中签出我的 Bitbucket 存储库。我不断收到以下错误:

git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree fetch origin 
fatal: remote error: CAPTCHA required
Your Bitbucket account has been locked. To unlock it and log in again you must
solve a CAPTCHA. This is typically caused by too many attempts to login with an
incorrect password. The account lock prevents your SCM client from accessing
Bitbucket and its mirrors until it is solved, even if you enter your password
correctly.

If you are currently logged in to Bitbucket via a browser you may need to
logout and then log back in in order to solve the CAPTCHA.

存储库:

https://testuser.com/bitbucket/repo.git

我多次登录和退出,解决了验证码,但仍然出现相同的错误。我需要在 Bitbucket 方面更新一些东西吗?源树方面?或者可能是一个 URL?

谢谢

【问题讨论】:

    标签: git repository bitbucket atlassian-sourcetree


    【解决方案1】:

    在 macOS 上,这对我有用:

    1. 关闭 SourceTree
    2. 打开钥匙串访问
    3. 搜索“bitbucket”并删除所有条目
    4. 去bitbucket网站,注销再登录
    5. 打开 SourceTree 并输入您的密码

    【讨论】:

      【解决方案2】:

      我通过按照以下步骤为 Git 设置 SSH 解决了这个问题: https://confluence.atlassian.com/bitbucket/set-up-ssh-for-git-728138079.html

      存储库:

      ssh://git@testuser:repo.git
      

      之前我使用的是 HTTPS 协议,但它会导致错误。

      【讨论】:

        猜你喜欢
        • 2022-01-07
        • 2018-03-05
        • 1970-01-01
        • 2021-03-06
        • 2020-12-13
        • 2023-01-12
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多