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

Your Points Tracker
Challenges
Leaderboard
  • 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
Recognition
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?
Kudos
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 keeps asking for Visual Studio Online credentials

Like the title says, every time I fetch/pull/push/whatever I get a window from Git Credentials Manager for Windows asking me to log in on Visual Studio Online (where the repository is hosted). When I close the window, the operation I started works perfectly fine, so I really don't need to enter my credentials. The credential manager window also pops up when I'm not doing anything (probably when Sourcetree is refreshing automatically or something like that). This is driving me insane. I tried uninstalling the credential manager both through system git and through Sourcetree's embedded git (I'm using embedded), but I still get the popups.

How can I stop this?

1 answer

0 votes
minnsey Atlassian Team Jun 26, 2018

Hi

Can I ask if you try and fetch etc from the command line using Git for the VSTS repository do you get prompted?

Without trying to shift the blame, it sounds like it might be a Git Credential Manager, GCM, issue. The GCM ships with Git for Windows and manages the authentication, prompting for and storing credentials.

All (?) VSTS repositories are effectively private as far as I know so the GCM must be finding usable credentials from somewhere.

Is it possible that you have more than one credential.helper configured for Git?
If so Git will cycle through them trying to find credentials and then prompting if necessary. It sounds like Git might be triggering one credential.helper which can't find credentials so prompts you, when you cancel that out it then tries the next credential.helper which finds good credentials and they get used.

running git config -l will list the config including and credential.helper references

Hey, thanks for the reply. The problem seems to be fixed now. I added a manual access token to VSO, logged in with that AND logged in using my MS account in the credential manager window and it hasn't asked for my password since. Really weird behavior, but I'll take it. If I run into problems again, I'll try your suggestions.

Suggest an answer

Log in or Sign up to answer
TAGS
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,376 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