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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted Jan 17, 2019 in Sourcetree

[dev team] Sourcetree for Windows 2019 Preview - Dark Theme

Hi folks, While the full post is over on our blog I'd like to share the dark theme we've got planned for 2019 here directly as well to keep the discussion going.  The ...

1,557 views 13 14
Join discussion

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