Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Cannot add Bitbucket Account to Sourcetree

I had to create a new account on mac os x 10.14.1 powerbook due to icloud keychain issues. From this new mac account I cannot connect my bitbucket account nor clone the repository to this new account.

On some trials the window title will say please sign in to this account and showing some repository information. The Cancel button will remain the only option and it is not possible to add the account. When I hit the Clone button in these cases, cloning needs to be canceled with the following error:

git -c filter.lfs.smudge= -c filter.lfs.required=false -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree clone --branch master /Users/asd/fitdrills
Cloning into '/Users/asd/fitdrills'...
warning: templates not found /usr/local/git/share/git-core/templates
Completed with errors, see above

On some trials an error will be shown instead of repository information and the Cancel button is the only option here too. Error: Invalid redirect_uri This integration is misconfigured. Contact the vendor for assistance.

I applied the following in the terminal already to try to reset source tree preferences: defaults delete com.torusknot.SourceTreeNotMAS

4 answers

1 accepted

1 vote
Answer accepted
Ana Retamal Atlassian Team Dec 04, 2018

Hi Andreas, welcome to the Community!

Are you trying to add it following the steps at Connect your Bitbucket account? If so, can you provide the following information?:

  1. Do you have git installed? Which version?
  2. What version of Sourcetree are you using?
  3. Have you tried cloning this repo from the terminal? Do you get any error?

Let us know!


Hi Ana, Yes I followed these steps.

But everything worked fine now after I upgraded Sourcetree from Version 2.7.6 (177) to 3.0 (200). I hope I have some newbie credit for not checking this myself. Thank you very much for your help!

BTW: (1) did not change the git version 2.17.2 (Apple Git-113) on my mac, (3) I did not need to clone at all. Connected successfully to local directory again after the upgrade. 

Thanks again! Andreas

I have the same problem. I have updated to the latest version, but when I want to add the account, I log in but there is no option but to "cancel". I can not add the account.

I have the same problem (Mac). No OK button to press and confirm.

Like # people like this

Same problem here since alsmost a year on macosX 10.12.6 (sourcetree 2.7.6 — 177).

Can we get any help ? 

Same problem for me.

No OK button, but the 'Please sign in to this account' message still displays at the top of the window, even after I've signed in (in the window), and I'm browsing around my Bitbucket account (in the window).

Only button is 'cancel', and clicking it takes me back to the Account dialog with a button to start the sign In process again.


MacosX 10.13.6, Sourcetree 2.7.6 - 177.

Like AL20 likes this

Same problem... June 2021.


Is there actually an answer out there or should we just all use another app?

just update your source tree and you will get rid of this issue.

In my experience, it was because I had already connected to another source control and the previous account existed in sourcetree desktop version. To solve, open client app, select the settings on top right of the screen, select both accounts and advanced tabs and remove items from there and retry cloning again from the menu.

This didn't help. I had another account, now I have 0 accounts and I still can't login to Bitbucket.. That is, I log in through the pop up window but only have Cancel option on it and I can browse the Bitbucket website..


Edit: updating SourceTree helped. The login no longer appeared in the popup window but took me to the website through browser and I was able to authenticate.

Suggest an answer

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

Bug Fix: Sourcetree for Windows authentication error when updating to app password

Hello Sourcetree users!!! With the recent removal of Bitbucket Cloud account passwords for app passwords (please see our Bitbucket Cloud community post for details on why we made this change for se...

78,641 views 134 29
Read article

Atlassian Community Events