You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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?
Hello! This issue can be solved by adding your username to the remote repository path:
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.
I've just found a solution:
Two Simple Steps to Configure Git for Multiple GitHub Accounts on Windows
1. Enable Windows Credential Manager
git config --list
git config --global credential.helper wincred
2. Enable WCM for Multiple Credentials
git config --global credential.useHttpPath true
We have a shared machine that requires individual users to log in under their own accounts and use Sourcetree, and this nearly exactly solved the credential issue that we were having. For our setup, I had to move the global settings to the system-level config file, since global is still per user account. Thanks for the link!
I solved it in Advanced menu that can be accessed from the double-arrow on the top right corner of the Preferences screen(shortcut " CMD + , " on MacOS) ..
In this windows, I changed the username related to the host that I was having auth issues. In my case, the SourceTree was choosing a wrong user...
I hope this help.
That option unfortunately doesn't appear to be available on Windows. The most reliable way I've found to not run into this bug is to skip the registration step during install. If I never add my bitbucket account to it in the first place I don't seem to run into this issue, but every time where I install it on a new computer and go through the registration step I end up having to deal with this issue.