How in SourceTree to get rid of a window “Git credential manager for Windows”?

After adding the repository, a window with the heading "git credential manager for windows" constantly pops up. Whatever I do (enter different logins and passwords, cancel), it then appears again. And in more than two copies. How to get rid of it?

I have registered the following settings in the .hgrc file, but this does not help.

repo.prefix =
repo.username = <login>
repo.password = <pass>
repo.schemes = http


2 answers

0 votes
Gary Sackett Atlassian Team Aug 28, 2017

Hi Sukhrob,

Can you go to Control Panel -> Credential Manager -> Generic Credentials. Find any GIT, or HG entries, and remove them.  Then re add a repo - you should then again get the pop up window >> add the proper creds.  Can you confirm if you continue to get the popup after that?


There is no such menu item in the SourceTree program. I see such items as: File, Edit, View, Repository, Actions, Tools. Where can I find the "Control Panel"?

I'm fairly certain @Gary Sackettis referring to the Windows Control Panel -- if you are on Windows 10, searching for it via the Start Menu will get you there.


I do not have "GIT, or HG entries" in the control panel (in the "Generic Credentials").

I do not have "GIT, or HG entries" in the control panel.

Gary Sackett Atlassian Team Aug 29, 2017

Hi Sukhrob,

It sounds like Windows is not saving your entry, which is why tou would continue to get the credential popup everytime you make a connection.

There are a few different solutions that have been successful listed at


It tries to connect to https://...
And I have explicitly set http://... in the settings (file .hgrc).
Is it talking about something?

Mike Corsaro Atlassian Team Aug 30, 2017

In your file you have "http" but it should probably be "https"

My repository is on http. By the https protocol it is not available.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 23, 2018 in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

1,124 views 4 2
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