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

15 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

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. 

I have the same error. Was doing install/uninstall of all parts. Soooo frustrating time waster

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.

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!

This worked until I needed to push something.

See my last comment on how I solved it.

Just to pop in here and bump this thread, it's been marked resolved, but it isn't. I have tried all of the "fixes" in this thread, and the only one that stops the annoying pop ups is going back to 1.9. Something happened recently, because I was just using this same repo on github last week without the issue. I noticed I was using the system git, so I updated that, tried the embedded git, etc. I stopped that service, rebooted a few times, yadayada.  

I normally wouldn't bother commenting but I wanted to let the devs know this is not a fixed issue. 

Thanks for the heads up. I'm also still on 1.9 because of this issue and will continue so until it's fixed completely. 

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.

0 vote

In my case, it was related to submodules including digest credentials in the URL string.

 

After trying all the suggested solutions, this is what ended up working for me:

  1. Open the base location of your repos in explorer and search for config.
  2. Drag all the file matches to something like sublime.
  3. Look for any basic auth credentials embedded in the URL like: config credentials.pngand delete the credential portion.
  4. After I went thru these and deleted them, I only got one more prompt for credentials.

 

Hops this helps someone else.

-Ryan

I have the same error, I'm on v 2.4.8.
Was doing install/uninstall of all parts nothing helps. Soooo frustrating time waster

0 vote

I'm on the latest (2.4.8) and since sorting this month's windows 10 updates yesterday I'm now seeing this popup problem too. SourceTree is working fine without me putting any credentials in though.

I was having this issue too, I tried several suggestions on this page to no avail. Turned out to be much simpler, I still had a reference in my SourceTree to an out-of-date repo which had finally been removed. Once I deleted that, the error went away.

The only thing that worked for me was removing the saved password and re-enter it from the settings.

 

Hope it can help some of you.

I'm still having this problem, too. I've tried the various suggestions, but haven't found what it is yet. I also tried removing unneeded repos, but the problem still occurs.

Tools > Options > Authentications 

Remove all your repo/password & account/password.

Re-enter it agains and try to pull/commit/push something.

Also I do like to use ssh key to push things, so maybe setting one in your repo settings may help.

Tried suggested solutions above from Kris, Christopher, Bo, Ryan and Francis, but the issue persists.


Have updated a helper tool to easily toggle the presence of git-credential-manager.exe (rename it, and rename back again when required) as a workaround.

Does anyone know if other GIT clients (GitKraken, SmartGit, Tower, GitUp) are experiencing the same behaviour?

0 vote

I'll add something here that I think has solved it and others may have mentioned before. Probably the wiping all accounts clean might do the job, but If you're using SSH on some of your repos and HTTPS on others, you'll need to generate a private access key and use that as a password for the HTTPS ones. Also, keep in mind that subrepos may be set up this way, too.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 11, 2018 in Sourcetree

Tip from the team: debugging Sourcetree

Supported Platforms macOS Windows If you're reading this and it's not just educational… we know you're unhappy right now and apologize for that   We're dedicated to improving yo...

657 views 9 6
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