Unable to commit using App Password in SourceTree
Asked by Mrunmayee Prakash Shirodkar:

I have created app password with all permissions. In SourceTree, Tools -\> Options -\> Authentication tab shows Authentication: OK. When I try to push it shows me an authentication error.

remote: Bitbucket Cloud recently stopped supporting account passwords for Git authentication.  
remote: See our community post for more details: <https://atlassian.community/t5/x/x/ba-p/1948231>  
remote: App passwords are recommended for most use cases and can be created in your Personal settings:  
remote: <https://bitbucket.org/account/settings/app-passwords/>  
fatal: Authentication failed for '<https://bitbucket.org/mrunmayeeshirodkar/typs.git/>'

What am I missing?


Answers:
author: Devon Chan
body: I got the same issue from now and then, mostly Source Tree password cache problem.  

This fixed my issue:

(1) Clean Window Credentials

1. First close any open instances of SourceTree
2. Go to Control Panel \> User Accounts \> Manage Credentials \> Windows Credentials
3. Find SourceTree related passwords and remove them

(2) Clean Source Tree "passwd" file

1. Open Windows Explorer (<kbd>? Win</kbd>+<kbd>E</kbd>)
2. In the address bar, go to "`%LocalAppData%/Atlassian/SourceTree"`
3. Delete "`passwd"` file
4. Open Source Tree and **Perform a Fetch** before doing anything else.

<br />

Ref: [stackoverflow.com/questions/45690641/](https://stackoverflow.com/questions/45690641/)

comments: author: Darshana Vimukthi Wanigasekara
body: Worked!!! Thanks.... Life saver... :)


author: Sam Smith
body: This worked - many thanks!


author: Smirelesz
body: Thank you so much. This worked like a charm.


author: jorge.lozano
body: I had a similar problem trying to clone a repository. These steps helped me to solve it. Thank you very much!


author: Chester Macklin
body: This fixed it when nothing else would, thank you! For others/SEO, my original issue was not seeing remote repositories, then when Atlassian updated the credential system I was no longer able to commit existing repos with the old OAuth system or the new app passwords. At all times the settings screen showed a green check for authentication. The above fixed all the issues.


author: Ike Kim
body: Wonderful!

It worked magically without knowing all the details behind.

Thank you very much for saving my time.


author: Adam Courtney
body: You are a wonderful person! :) Thank you for saving a battle, and maybe losing a bunch of my project! :)


author: SilvanaKU
body: Awesome, worked. For me, it was sufficient to delete the passwd-file and perform a fetch.


author: Razvan Grigore
body: Was having the same issue, my friend was able to find a solution after lots of tries and now it's working.

First, download and install Git in your system, if you don't have it. <https://git-scm.com/>

Then, go to Tools \> Options \> Git and select System, as seen here:

![Captur?_ecran_030222_121156_PM.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/185991i976638463987742F/image-size/large?v=v2&px=999 "Captur?_ecran_030222_121156_PM.jpg")

Login again with the new App password when prompted and everything should work well. You can also try Update Embedded option too, maybe it will fix it without the need of System use.

comments: author: Andreas Dahmm
body: Many thanks for this, this solved my issue.


author: MarioRangel
body: thats my first comment at this forum only to say, thanks man, you saved me.


author: krithika_babu
body: thank you !! worked like charm


author: Michael Haggerty
body: Thank you. What an annoying issue... This installation of git solution worked for me.


author: Erune
body: I've spent much of the day fighting with this problem, there is still no solution?


author: Hondaman900
body: For me this wasn't resolved until I edited my Windows/System32/drivers/etc/hosts file to add

18.205.93.0 bitbucket.org

to the end of the file and save.

Then it worked. Thanks to: <https://www.youtube.com/watch?v=N2_EzkDZmBw>


author: Vlad Cimpianu
body: Bitbucket fucked up badly changin things that were actually working.


author: IIT Common User
body: i have the same issues .it still in error. how can i solve this?


author: Ivy Marie
body: Mine is working properly now! I just deleted the existing credentials on my mac from by following this:

[How to wipe Sourcetree preferences](https://confluence.atlassian.com/sourcetreekb/how-to-wipe-sourcetree-preferences-412484640.html)

After deleting those files. Open your sourcetree again and for Mac a pop up box appeared and you have to enter your username and your app password and you should be good!


author: yeisson72
body: I have the same problem, today I tried to pull and push new commits but the system all the time said me:

Command: git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks ls-remote [https://yeissonh@bitbucket.org/\*\*\*\*\*\*\*\*\*\*\*\*\*\*](https://yeissonh@bitbucket.org/**************)  
Output:  
Error: remote: Bitbucket Cloud recently stopped supporting account passwords for Git authentication.  
remote: See our community post for more details: <https://atlassian.community/t5/x/x/ba-p/1948231>  
remote: App passwords are recommended for most use cases and can be created in your Personal settings:  
remote: <https://bitbucket.org/account/settings/app-passwords/>  
fatal: Authentication failed for '[https://bitbucket.org/\*\*\*\*\*\*\*\*\*](https://bitbucket.org/*********)

I try to delete the files and recreate the repository but nothing worked.

comments: author: yeisson72
body: Hi!

I resolved in this form:

I created SSH Key, I used this article:

[Set up an SSH key \| Bitbucket Cloud \| Atlassian Support](https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/)

And clone one more time

regards,


author: Ivy Marie
body: I have the same issue. I have set it up and followed the instructions and still authentication error!!


Tags: password