Search code examples
gitgithubatlassian-sourcetree

How to change username password of github account in sourcetree on macOs?


I'm using SourceTree and have 2 GitHub accounts. I connect and push my commits to one of them. First time SourceTree ask me to enter password, but when I wanted to push to my other GitHub account it doesn't ask me to enter the password and just show this error:

git error message: unable to access the repository

I couldn't find a way to change the password. I could push to the other site like GitLab, but I couldn't find a way to change the password for another GitHub account. What should I do?

Os: macOs Seirra


Solution

  • In new version of Sourcetree, new Account tab added to the preference.

    enter image description here