I have a number of business repositories at my company's account, but I also have a few personal repositories with a different login.

After I added my company account I cannot access my personal repositories unless they are public. I understand this is an issue with SourceTree, possibly able to circumvent using keys.. 

Is there no way to use two different accounts? As SourceTree does support adding multiple accounts.

3 answers

If you're trying to use the extended integration, you should be able to add multiple accounts in the Hosted Repositories dialog.

If you are just using github as a simple remote git repo, there shouldn't be any reason why you couldn't have repositories with different credentials.

Thanks, but any idea why this is a problem?

I can add multiple accounts in Hosted Repositories, but another discussion suggested that there may be an error in handling them.

I can access my personal repositories if I make them public, which suggests that my path / location is correct.

And I can access my company's private repositories without problem, which suggests that accessing private repositories is not a problem.

Further, if I set my repository as public, clone, update a file, commit and push.. I get an error that my company's users is not allow access.. even though my personal account is set as default, and the repository is cloned using my personal account information.

Suggest an answer

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

946 views 3 2
Read article

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