Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

SourceTree Requiring CAPTCHA Login Every Time

So every time I try to push or pull, the action fails and I get the following prompt:

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks fetch origin
git: 'credential-osxkeychain' is not a git command. See 'git --help'.
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

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.

Visit Bitbucket at for more details.

I have found I am able to fix it by opening bitbucket in the web browser, logging out, logging back in, and completing the CAPTCHA check. Sometimes this check doesnt appear and I'll have to log out and in multiple times for it to work. 

If I just had to do this once it wouldn't be a problem, but its required every time I push or pull, even immediately after I've gone through the process. This never happened before, and no it happens every time. I've already tried updating SourceTree, and no fixes I've found online have worked.

Any ideas would be much appreciated.



1 answer

0 votes
bgannin Atlassian Team Jan 07, 2019

Hi Justin,

Our apologies for the hassle. A couple suggestions to try:

1. delete and re-add your Bitbucket account from Preferences/Options

2. if you are using SSH, verify the key is loaded by agent (ssh-add -l)

3. alternatively, switch from SSH to HTTPS and see if authentication calms down

Brian Ganninger
Senior Mac Developer, Sourcetree


Looks like deleting and re-adding  my Bitbucket account did the trick. I appreciate the quick response!



Hey Brian, 

It looks like that fix worked temporarily for whatever reason, but I'm now experiencing the same issues again. I am using HTTPS.

Any other ideas I could try?



Like Mike likes this

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

7,025 views 5 13
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you