I recently changed my username on my Github account, and now I can't seem to connect to my account from SourceTree. I just get "Login error" even though I'm sure I have the correct username/password.
I am using...
Auth Type: Basic
Protocol: HTTPS
I've tried other options, and they all fail as well. But I'm happy to use any combination of options that works.
I just ran into the same issue and suspect it may not have anything to do with the username change:
Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
go to https://github.com/settings/tokens and create a new token with repo access (first tickbox)
then go back to sourcetree and pull up your repo settings.
edit the origin path of your repo
from https://github.com
to https://TOKEN@github.com
(paste your token from github, then type @ between https:// and github.com).
save it and it should work again.
Thank you! Finally got it to work again!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vincent, could you help me adding fresh new GitHub account to the source tree with that token? The only options I can see are those:
My login credentials are failing, Oauth does take any effect either. How can I provide my token from here? Kind regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you don't need to use an account anymore.
instead put your token directly into the repository address as above.
if it lets you, you can also use the token as username and leave pw empty.
when i run a git deploy via ssh from the server i do that when it asks for username/pw
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.