问题
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:
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
回答1:
Under Tools > Options > Authentification you can edit your username
回答2:
you can change password for git-credential-sourcetree in Keychain Access
回答3:
In new version of Sourcetree, new Account tab added to the preference.
回答4:
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.
来源:https://stackoverflow.com/questions/46363362/how-to-change-username-password-of-github-account-in-sourcetree-on-macos