Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

SourceTree for Windows authentication issues


Windows 10 Home 64-bit

I connect to several Git repositories on GitHub, and several Git and Mercurial repositories on Bitbucket, using SourceTree. Roughly every 10 minutes, SourceTree asks me to enter my username and password for Bitbucket, even though these are already saved in the "Accounts" list. This issue also occurred in SourceTree 1.9.x.

Approximately once every ten minutes, SourceTree displays a "Windows Security" dialog with the title "Git Credential Manager for Windows" and message "Enter your credentials for". If I enter my credentials, the dialog goes away, but comes back roughly 10 minutes later.

If I go to the Accounts list (Tools > Options > Authentication), there are four accounts listed:

1. ""
Username: myusername
Authentication: OAuth
Default account for Yes

This account has a Delete button, but nothing happens if I press it


2. ""
Username: Personal Access Token
Authentication: Basic
Default account for Yes

This account has a Delete button. If I press it, a confirmation dialog appears. If I confirm, the account is removed from the list


3. "myusername@"
Username: myusername
Authentication: Basic
Default account for : Yes

This account has no Host name. It does have a Delete button. If I press it, a confirmation dialog appears. If I confirm, nothing happens and the account remains in the list.


4. ""
Username: myusername
Authentication: OAuth
Default account for No

This account has a Delete button, but nothing happens if I press it


3 answers

I've had this issue off-and-on for the past year or so - although I'm not connecting to GitHub, just Bitbucket. I'm currently running v2.1.10.0 on Win8 although I think it was occurring in the previous release (v2.1.8.0) as well. I use SSH to connect to Bitbucket via Pageant.


The last time it started occuring I was able to fix it by going into Tools -> Options -> Authentication, and after clicking edit on my OAuth account I saw that my token had expired, which was fixed by clicking "Refresh OAuth Token".

I then needed to click the "Set as default" link for that account, and ensure that under the Saved Passwords section, my account had "Default account for :  Yes".

This fix used to last for weeks or months and I could authenticate via SSH without the Git Credential Manager prompts popping up.


Recently this issue has started occurring again, and it seems that SourceTree is forgetting my OAuth token daily. Each morning when the login popups start appearing, I go into my Authentication menu and I see that my token has expired. After refreshing it, I see that it's not marked as the default account and there is no saved credential.

I also had the stupid "myusername@" credential listed in my Authentication menu which couldn't be deleted, but that was able to be removed via "Manage Windows Credentials".

0 votes
minnsey Atlassian Team Jun 22, 2017


Do you access repositories using multiple accounts, e.g. access GitHUb repositories under different accounts? If so that can cause the behaviour you are seeing. The 'Git Credentials Manager for Windows' which ships with Git and SourceTree relies on only supports a single account for GitHub and hence constantly prompts the user as it attempts to access repositories under different accounts.

You can clean out all the cached credentials using the 'Manage Windows Credentials' option in Windows and deleting all entries prefixed by 'git:'

You can also prevent repeated prompts by disabling SourceTree's automatic checking of remotes in the Tools/Options tab

I use one Github account to access all of my repositories on Github, and one Bitbucket account to access all of my Mercurial and Git repositories on Bitbucket.

I tried cleaning all of the credentials from the Windows Credentials manager but now the behavior has gotten worse. When the Git Credential Manager login dialog appears and I click Cancel, the Atlassian Bitbucket Login dialog appears. If I click Cancel in this dialog, it re-opens instantly. The only way to make it go away is to close SourceTree and then click Cancel. Now I have to close SourceTree after each commit and not open it again until I'm ready to make another commit, then wait 20 seconds for it to initialize.

SourceTree 1.9 only took a few seconds to initialize, but I can't go back to it due to the huge security flaw that you announced.

For those looking for the Manage Windows Credentials, it can be found in Control Panel\User Accounts\Credential Manager and then just select Windows credentials. My issue was resolved by making sure that the repository URL had the correct login username and password.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published 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...

3,290 views 4 5
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