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

Viewed 8591

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

4 Answers

Under Tools > Options > Authentification you can edit your username

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

enter image description here

In Windows, sometimes the answers provided by "Crux lp" and "Haven Lin" may not work. In that case, just go to "windows credential manager" then click on "Windows Credentials" and find your account in the list. Press on "Edit" and change your password.

Related