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

Wrong username for Github when attempting to push

Hi team,

I've entered my account correctly here:

But every time I try to push to a repo on my account, SourceTree prompts for a password using a different (incorrect) username: - yielding this error:

Why does it keep asking for "robbie" instead of "superstrong", and how do I fix it?


1 answer

That password prompt is actually not from the 'hosted projects' API call, it's from an actual git call (the prompts are slightly different because of the way the authentication has to be hooked in), which means it's getting that username from a remote URL that's configured in one of your repos. The remote URLs that you have set up in your repos can be different to the one you have set up for the hosted projects window, because remote URLs are completely free-form. So please check the 'Settings' option (top right on the toolbar) for the repo you're interacting with, I'm guessing it either has 'robbie' in the URL or no username at all and is defaulting to that. You shoudl then be able to fix it by correcting the URL.


I'm having my repo set up to different remotes, bitbucket and github. The usernames for each account are different, yet sourcetree is prompting me to log in to github's remote with bitbucket's username (the username is grayed out). The usernames are correct under remote settings though.


Thanks in advance!

Suggest an answer

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

Sourcetree for Windows - CVE-2019-11582 - Remote Code Execution vulnerability

A vulnerability has been published today in regards to Sourcetree for Windows.  The goal of this article is to give you a summary of information we have gathered from Atlassian Community as a st...

695 views 0 9
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