I updated to version 2.1.10.0 today and now I can't perform any git operations with SourceTree.
I get the error:
Invalid username or password. If you log in via a third party service you must ensure you have an account password set in your account profile.
I have opened Tools>Options>Authentication and ensured my credentials are valid. I've tried using Basic and OAuth and in both cases SourceTree says "Authentication OK" but I still get the error when trying to push or pull.
Is anyone else experiencing this issue?
I upgraded to 2.1.10 just now and have not yet encountered an authentication problem.
When a person at our office encountered a credentials problem, for a release prior to 2.1.10, the solution that worked for us was to delete a file named passwd located in AppData\Local\Atlassian\SourceTree.
My passwd file was zero bytes in length. His pwd file did have content and, after he deleted it, he could authenticate.
Before deleting the passwd file, we had tried the following with no success:
1. Re-entering credentials through the UI provided by SourceTree
2. Deleting the Windows Credentials stored in Windows by SourceTree.
The only other thought I have is to delete the Windows Credentials stored in Windows, delete the passwd file, then restart SourceTree. We had deleted the credentials before deleting the passwd file, and I am not sure if the problem was rectified by deleting the credentials and file, or deleting only the file.
Following is what I wrote down regarding the Windows Credentials. We are using Windows 10.
SourceTree stores credentials in the Windows credential manager. To see and remove them, do the following:
Open the Control Panel.
Click on User Accounts.
In the left hand list of links, click Manage Your Credentials.
When the Manage Your Credential page opens, it shows your Web Credentials. You can see that selected at the top of the page.
Click the Windows Credentials "button". This shows your stored Windows credentials.
In the list, look for entries that start with "git:http" and include your server name and/or user name for Atlassian Stash.
Remove the entries.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Worked for me! Thank you very much, Sean!
Cheers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Sean! Deleting the passwd file and removing the credentials in credential manager worked for me, too.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For anyone using VSTS + SourceTree, I was able to follow Sean's instructions upto where SourceTree prompted me for the password. It failed to take my credentials because VSTS disabled my existing credential due to too many failed auth attempts (made by 2.1.10.0).
At this point I had to go into VSTS > Code > Clone > Generate Git Credentials and create a new password.
I entered my newly generated password on the SourceTree prompt and it allowed me access.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That is a really good point. We use Atlassian Stash (an old version of Atlassian BitBucket Server). When dealing with the credential issues, sometimes the operation in SourceTree failed due to too many failed logins. The git error messages shown by SourceTree did not make this obvious.
It was only the error messages shown by the Fetch operation that told us Atlassian Stash needed the user to verify they were human via Captcha. So we had to navigate to the user's detail page in Atlassian Stash and click the Clear Captcha button.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So I was able to sort it out just now, by going to Repository->Repository Settings, selecting my repository, and changing the username from my old Bitbucket username to my Atlassian account's email address. Then, following your original advice to remove the passwd file, I was able to successfully pull.
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This (deleting the passwd file) worked for me. Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Deleting the password file worked for me. Thank You!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks! This worked for me:
Close SourceTree
Delete Windows Credentials
Delete passwd file
Reopen SourceTree
Login when prompted
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Same process listed by Matthew D, worked for me as well.
passwd file is in located in AppData\Local\Atlassian\SourceTree.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are my hero dude!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Version 2.6.10: this works for this version, thank you very much!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For me as well on 2.6.10, thank youuu (deleted pwd file & windows credentials)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sean!!! ... it worked for me to in version 2.3.1.0!! Many thanks for the solution!! I lost 4 hours trying go solve it! ... and I would lose some more without your solution. Tks again!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi all
According to Atlassian this is an issue with the version of Git Credential Manager that's bundled with the software.
If you go to Tools>Options>Git>'Update Embedded Git' it should fix the issue for in version 2.1.10
Hope that helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This worked for me. SourceTree 2.1.10.0 on Windows. BitBucket authentication. I only encountered the issue on Push.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This worked for me as well. SourceTree 2.1.10.0 on Windows. Bitbucket authentication. I encountered the issue on fetch and pull. -- Thanks a bunch for the post.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Didn't work, planning to reinstall the latest version, a bit frustrating
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry it was update embedded git and after the update use embedded git that worked for me, thanks for the update.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
At first I removed passwd located in AppData\Local\Atlassian\SourceTree and this solved the sourcetree issue but I was still not able to pull or push using command line or any other git tool until I did this one as this update seems to have messed up my git.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This worked for me. Thanks Dean!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
La solucion a mis problemas..
Tools>Options>Git>'Update Embedded Git'
THANK YOU
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This was the solution for me as well with Sourcetree Version 2.3.5.0
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sourcetree v3.4.8 and deleting windows credentials and password file still works! Thank you so much.
It helped me to solve credentials saving problem with some local GitLab server. I noticed that now host for saved password looks like git.xxxxxx.xx But when I had to input credentials each time, there were http://, username, @ and some other parts in host name. So I think it gets corrupted somehow.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I still have the issue after installing SourceTree 2.3.1.0
I am trying to update the Embedded Git. Now I have a new Issue Unable to extract Portable.Git.7z This file is open as [PE] Archive
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I closed source tree, and a few login dialogs that were beneath the window I closed. Then I re-ran Update Embedded Git and finally it worked.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just ran into this AGAIN with V3.1.2.
Fix for me: Tools > options > Git, then Update Embedded.
Push again after update, was asked for pwd. was ok after that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I was about to kill myself over this. Only thing that worked in the end was removing the passwd file located here:
AppData\Local\Atlassian\SourceTree
and restarting SourceTree. It asked for the password and it worked.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Still getting this error. This is awful. I get multiple login popups constantly throughout the day. Like source tree or Git is not saving my information at all.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I just had the same issue. I deleted the passwrd file and it solved the problem
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Downgraded to version that is on the website. Started working again.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Seconded (or is this fourthed at this point?). Updated to 2.1.10, and nothing works.
Tried refreshing the OAuth token through the options, but although the operation was successful, nothing changed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I got the same problem after upgrading to 2.1.10.
But I downloaded SourceTree again (version 2.1.2.5) from their web and installed that version. After that I don't have any problem with the authentication. I rejected the upgrade to 2.1.10 that came up...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Having the exact same problem. Re-installed Souretree, declined the 'would you like to upgrade to 2.1.10' and everything works again.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you lose all your settings? I have setup some ppk connections etc and dont like reinstalling them. Where did you get a previous version?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.