I keep getting popups for "Git Credential Manager for Windows" whenever SourceTree is running.
Pretty sure the credentials for all the repositories I have open are already in SourceTree as I can update, commit, etc without issue so I'm not sure why the popups keep appearing.
Is there something I can do to prevent them from appearing? A screenshot of what I'm seeing is below. I'm using Windows 10 x64 if that makes a difference.
This is the solution that finally worked for me:
(1) Installed Git Credential Manager for Windows.
(2) Opened the terminal by clicking the Terminal button in SourceTree.
(3) Issued the commands below:
The first command set the credential helper to use Git Credential Manager for Windows.
The second command was necessary for me because I use repositories that are on the same server/domain but each repository has different credentials.
This is SOOOOOO broken. Every 10 seconds I get a popup asking for a password. No reason. No indication of which account it's for, just a generic "provide a username and password". So I have no idea which repository it wants a password for or even what program is requesting it. No indication of whether the password fail or succeded, and after a while the box just reappears. Over top of stuff, in the middle of presentations, etc. This is effectively malware. This all started with the installation of SourceTree 2.0, so it's gotta be that.
The commands above seemed to help, but not right away. I thought I had got the spontaneous dialogs to go away, but they do sometimes re-appear.
The problem seemed to start for me when I added a new bitbucket account (academic) and wanted to use two accounts. I have had Source Tree 2.x for a long time and don't recall this headache. I agree the GUI is borked since we have no idea for which account or which operation the credintial manager is asking this information.
Tools > Options > Authentication seemed also to be helpful for me. I removed the Saved passwords that were stored and re-tried a push. That forced the GCM dialog, to which I supplied credentials for the repo that I was pushing to. The push was successful, and I saw also that a new entry in "Saved passwords" was created for that repo.
It seems weird, since I have OAuth for both accounts, and can browse my bitbucket.org repos (some of which are private) with no problem. Why doesn't push (or pull) use that same method to authenticate?
I have this problem too.
I install Visual Code 1.15.1 and SourceTree 2.1.10.
It always pops up a window too. I use Process Explorer v16.04 to inspect which process is asking me.
Open log `git config --global credential.writelog true`, and search `credential.log` in Everything Version 220.127.116.117 (x86), but the content the log file is empty.
EDIT: The embedded Git has now been updated, alongside the release of Sourcetree 18.104.22.168. After updating SourceTree, go to Tools > Options > Git and click "Update Embedded Git" to get the latest version (at least 2.14.1).
The majority of issues in Git Credential Manager for Windows have been fixed in recent versions. The lasest version (1.12.0) released a couple days ago fixed the remaining issues I had with Bitbucket authentication.
The latest Git Credential Manager for Windows is included in the latest Git for Windows. Until Atlassian update their embedded version, you could install Git for Windows 2.14.0 and within SourceTree, click "Use System Git" in Options.
Kris's solution also works if you only want to update Git Credential Manager for Windows specifically, though does require config changes.
I recently updated Git and SourceTree (on Windows) and now I have the same problem with a pop up appearing every 10 minutes or so (even after I entered my password there) when SourceTree is open.
In my case it's the Microsoft account sign in.
I've tried what's suggested in the accepted answer but didn't help. Also tried various other terminal commands I found googling this problem also to no avail yet.
Would appreciate help to fix this, thanks.
Sorry to rant, but I'm not able to work with this annoying pop up getting in my way again and again.
Went back to SourceTree 1.x until this is properly fixed.
This is just a 'me too'. Updated to 22.214.171.124 and now I can't get rid of the Windows Credentials Manager popup, despite trying all the suggestions above.
This makes ot almost impossible to work.
Anyone know where I can get an older version of SourceTree until there is a fix for this?
last 1.x version (I think) is available here, also other older versions there.
Regarding a temporary 'fix' for this using 2.x version (on Windows), what I did when that annoying pop-up came up, was opening Task Manager, see what processes are running, could spot "Git credential manger.exe" (can't remember exact name), closed SourceTree and renamed that to something like "Git credential manger.old", (so it couldn't run anymore) which 'fixed' the popups for me.
I'm back to version 1.x anyway, as I like the layout with the bookmarks sidebar better.
You might want to check whats being requested before the password prompt using wireshark or similar.
Also, SourceTree supports single sign-on, mening you can forever get rid of the need for passwords when using Bitbucket:
Lars, Kantega Single Sign-on
Thanks for the reply Lars. I'm not sure what's being requested but the pop-up only occurs when SourceTree is open and stop once SourceTree is closed so I'm pretty sure they are coming from SourceTree.
All I have open in SourceTree are three repositories (screenshot below). Each repository uses different credentials if that makes any difference.
That's right, Kris. Popups comes only when sourcetree has been started and when I start pull or push. In my sourcetree folder I have a git_extra folder with git-credential-manager.exe and git-credential-manager-st.exe. When I rename them, sourcetree throw an error. So where to stop to use this git-credential-manager.exe
Hi Lars, I'm using the SSO (OAuth) on both my accounts. When I want to clone a repo, I can browse all the repose for both accounts, so I know the OAuth tokens are good. Still, when I push, I'm asked to authenticate with the pop-up. Something seems broken, or am I supposed to indicate somewhere to use the OAuth tokens when pushing?
Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot