Git Credential Manager for Windows keeps popuping up Edited

I know that this issue has been raised in te past and I went over all of the posts and "answers".

I tried editing gits config, system and global. I tried all sorts of passwords and usernames. Sometimes this annoying popup goes away for 10 minutes, sometimes days and sometimes it comes up every couple of seconds. 

Please, Atlassian Team, could you please guide me on how to analyse this issue? How can I know what am I doing that is wrong? How can I know what repository is causing this? How can I know what username it expects? 

Please help me, this is super annoying and affects our team's productivity.

1 answer

1 accepted

1 vote
Accepted answer

Hi SoureTree for windows now shares credentials with Git via the Git Credential Manager or GCM.

The credentials for both are stored in the Windows Vault or Credentials Manger, the entries are prefixed with 'git:'

To determine what is going on I would

1) remove all existing 'git:' prefixed entries from the Windows Vault.
2) remove any credentials from git config files.
3) disable the automatic remote checking of repositories in SourceTree

Then restart SourceTree and open each repository in turn and do a fetch. This should trigger the GCM to request credentials. Entering them there shoudl mean they are stored correctly.

There have been issues with the GCM previously with HTTP rather than HTTPS URLs, if possible use HTTPS.

Also is using Bitbucket try and ensure you are using URLs that contain the username, e.g. https://username@bitbucket.org/repo-owner/reponame.git

The GCM can only store 1 set of credentials fro GitHub and hosts other than bitbucket. If you use multilpe accounts to access GitHub or another host the GCM will reprompt each time it changes account.

Hi,

Number 3 seemed to do the trick.

Thank you very much!!

For others who have this issue, here is how you do it in SourceTree 2.1.2.5

1. Goto tools -> options 

2. Uncheck "Check default remotes for updates evey [10] minutes"

 

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

848 views 3 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