Git Credential Manager for Windows Popups

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.

screenshot.jpg

6 answers

1 accepted

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:

  • git config --global credential.helper manager
  • git config --global credential.useHttpPath true

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.

  • C:\ProgramFiles\shell\Microsoft VS Code\Code.exe
  • C:\Users\ssfang\AppData\Local\SourceTree\app-2.1.10\SourceTree.exe

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 1.4.1.877 (x86), but the content the log file is empty.

 

BitbucketLogin.pngWhichProcessPopsupBitbuketLogin.png

EDIT: The embedded Git has now been updated, alongside the release of Sourcetree 2.1.11.0. 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.

edit:

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.

Same error, when working with git repos on TFS and accessing via http protocol. Version 2 of SourceTree seems to try to enforce https. This makes the same login pop up. This didn't happen with 1.9. 

This is just  a 'me too'.  Updated to 2.1.2.5 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?

 

- Patrick

 

 

last 1.x version (I think) is available here, also other older versions there.

https://blog.sourcetreeapp.com/2016/12/05/sourcetree-for-windows-1-9-9-released/

 

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.

That's great.  Thank you!

 

- Patrick

thanks nofish that worked!!!  I'm really gonna miss typing in my credentials over and over again ;)

Thank you so much nofish. This worked for me. It's such a relief!

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:

https://marketplace.atlassian.com/plugins/no.kantega.kerberosauth.kerberosauth-plugin.stash/server/overview

Cheers,

Lars, Kantega Single Sign-on

In my case I don't use git but ONLY mercurial for versioning my work. So Popup for git credentials are useless. And I don't want to use bitbucket..

Is there some other solution for get rid of this boring popup??

 

Thanks

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.

screenshot.jpg

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

Michael

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?

Interesting. I don't use Mercurial - only SourceTree/Git. That said, the pop-ups seem to have stopped for some reason. I don't think I did anything that would have caused them to stop but they haven't been appearing for a few days now.

Suggest an answer

Log in or Join to answer
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

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 ...

270 views 0 3
Read article

Atlassian User Groups

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!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot