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

Multiple git accounts on SourceTree

I have multiple git accounts on SourceTree.

But when I push to a repository on some account, It says default account doesn't have permissions to do so.

Is possible the SourceTree ask the which account to use to push every time i try?

OS: Windows

2 answers

I have the same question so I tried @Mike Corsaro suggestion.

adding the username doesn't fix my problem.

Adding the password for one account breaks the auth for the other.

In sourcetree / options / authentication I can see my two accounts are setup correctly. However there is only one password in 'Git saved passwords'. I can delete this password and connect to one of the accounts but this 'breaks' the connection to the other.

It would be great if someone can suggest what I'm doing wrong here.

Like Jin_Park likes this

I have exactly same problem!
Any solution yet?

0 votes
Mike Corsaro Atlassian Team Feb 08, 2018

Hello! This issue can be solved by adding your username to the remote repository path:

  • Open the repo
  • Click "Settings"
  • Double click on the "origin" item in the listing
  • Edit the url to add your username before the URL of the repo. Here's an example: ""
  • You should be prompted for a password the next time you try to push or pull

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

4,970 views 0 12
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