Bitbucket无法在Sourcetree中签出存储库

时间:2017-06-14 14:08:11

标签: git repository bitbucket atlassian-sourcetree

我最近更改了密码,无法在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://jhess.com/bitbucket/repo.git

我多次登录和退出,解决了CAPTCHAS并仍然得到同样的错误。我是否需要更新Bitbucket方面的内容? Sourcetree方面?或者也许是一个URL?

由于

2 个答案:

答案 0 :(得分:2)

在macOS上,这对我有用:

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

答案 1 :(得分:0)

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

存储库:

ssh://git@jhess:repo.git

以前我使用的是HTTPS协议,导致错误。