Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups



For all how are using Sourcetree under windows OS and Mercurial as Versioning tool and want to get rid of this boring popup for asking your for credentials:

  1. start cmd shell as admin
  2. Change path to where git-credential-manager.exe as been installed (normaly under ~\AppData\Local\Atlassian\SourceTree\git_extras)
  3. call "git-credential-manager.exe store"
  4. in the next lines fill in:




then press return for a new empty line. If you don't get any message, everything is okay.


Michael, when I ran `git-credential-manager.exe store` nothing happened. The command line was just blinking.

That is what he tried to explain. You just type in the host= stuff and then the next couple lines.


Deleted user Apr 27, 2017

This suggestion didn't work for me, unfortunately.

However what DID work was including my username/password in the repo URL. e.g.

Don't forget to URL encode your username/password!

I'm using SourceTree w/ an embedded version of Mercurial on Windows 10 and hosting my repo on IIS via hgweb.cgi. The Git Credential Manager kept popping up whenever I tried to clone/pull my repo.

Same problem here, but this solution does not work for me.

This worked for me as well

This finally worked for me as well, but only after uninstalling SourceTree and GitCredentialManager and removing the Atlassian and SourceTree folders in \Appdata\Local\

I then reinstalled SourceTree and removed and readded the remote.


Thank you. That helped me. Also I want to mention another path to achieve this. You may just open Manage Windows Credentials->Windows credentials tab and add new credential under Generic credentials. In domain field you should write "git:<>" and of cause then add password and username as well. My mistake was that I put just "" without "git:" part.

How is this so difficult to find. We upgraded this morning and its taken me over an hour to find your 5 min fix! Thanks so much!



Log in or Sign up to comment
Community showcase
Published in Sourcetree

Bug Fix: Sourcetree for Windows authentication error when updating to app password

Hello Sourcetree users!!! With the recent removal of Bitbucket Cloud account passwords for app passwords (please see our Bitbucket Cloud community post for details on why we made this change for se...

60,240 views 127 26
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you