Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

app password warnings after updating Bitbucket account in SourceTree to use an API token

TomCatchesides
June 23, 2026

I'm using SourceTree 4.2.18 on macOS.

Following the warnings about app passwords being deprecated, I've created an API token and edited my Bitbucket account within SourceTree to use the API token (following these instructions). All of my repositories are within this single Bitbucket account and I don't have any other accounts set up in SourceTree.

When I try to push a commit from SourceTree to my git repositories on Bitbucket, I'm still getting periodic "CHANGE-3222 - Functionality has been deprecated" errors. I get the same error if I try to clone one of my remote repositories.

How do I go about making SourceTree work with API tokens?

3 answers

1 vote
lcapozzi
June 23, 2026

Found a workaround. Manually editing the remote and changing it to:
git@bitbucket.org:{username}/{repo}.git works without any issues. Now I only have to update around 100 entries...

TomCatchesides
June 23, 2026

I'm glad you've got yours working!

The remote URLs I have in SourceTree are of the form https://{username}@Bitbucket.org/{username}/{repo}.git so are you saying that I should change that to https://git@bitbucket.org/{username}/{repo}.git ?

If so, that doesn't work for me: I get this password dialog and authentication errors.Screenshot 2026-06-23 at 17.52.25.png

 

 

lcapozzi
June 23, 2026

remove https://. It should start with git@bitbucket.org.

Like Tomislav Tobijas likes this
0 votes
lcapozzi
June 23, 2026

We have the same issue. We've been force to move to API Tokens, but the SourceTree client is not working any longer on some machines. With the same API Token and same credentials we don't have the same results. If we switch to another client (for example, Fork) everything works as expected. We cleared the stored Keychain entries, but that hasn't helped. We are basically locked out our entire codebase. Please, fix this asap!

TomCatchesides
June 23, 2026

@lcapozzi I'm glad I'm not the only one, but you'd expect Sourcetree to work with Atlassian's mandated changes wouldn't you?

lcapozzi
June 23, 2026

absolutely. Considering that I'm also on a paid account, it's utter nonsense that I'm unable to chat with a human being via the support page. I'm seriously considering migration to another platform. 

0 votes
Tomislav Tobijas
Community Champion
June 23, 2026

Hey @TomCatchesides ,

Have you tried clearing the macOS keychain? It should be something like Keychain Access 👀
I don't have Mac, but I know that a similar thing sometimes needs to be done on Windows in Credential Manager. 

In Mac, it's something like:

  1. Open Keychain Access on your Mac.

  2. Search for bitbucket.org.

  3. Delete any entries related to your Bitbucket account.

  4. Restart Sourcetree and perform a Git action; it should prompt you for your credentials, where you can enter your email and API token

Potentially Sourcetree cached old credentials in the local repo config. You could open repo in Sourcetree > Settings (top right) > Remotes and check the origin remote. (select 'edit')

2026-06-23_15-16-06.png

Cheers,
Tobi

TomCatchesides
June 23, 2026

Thanks for the suggestion @Tomislav Tobijas! I've tried what you've suggested and got SourceTree into even more of a mess now…

  1. Deleted Bitbucket entries from KeyChain access.
  2. Relaunched SourceTree.
  3. Edit account: the API token has been cleared, so I reenter it and click Save.
  4. A dialog window appears, asking for a password (see first screenshot). I enter my Bitbucket account password.
  5. When I try to pull from one of the remotes in this account, I'm asked for a password again (second screenshot). I've tried entering my account password or the API token and in both cases I get the following error:
    remote: You may not have access to this repository or it no longer exists in this workspace. If you think this repository exists and you have access, make sure you are authenticated.

    fatal: Authentication failed for 'https://bitbucket.org/…/'

 

Editing the account and changing back to basic auth with the app password that I was previously using resolves this, but that is of course going away soon.

Screenshot 2026-06-23 at 14.46.07.pngScreenshot 2026-06-23 at 14.46.44.png

lcapozzi
June 23, 2026

I'm on the same identical situation. I've also cleared the stored SSH credentials... everything. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events