The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot log in to my GitHub account

ElijahRap
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 15, 2021

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.

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

3 votes
Answer accepted
Vincent Heubach
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 17, 2021

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.

9meHU

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.

David Pulcifer
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 22, 2021

Thank you! Finally got it to work again!

0 votes
Jakub Gawęcki
September 26, 2021

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: Screenshot 2021-09-26 at 09.39.45.png

My login credentials are failing, Oauth does take any effect either. How can I provide my token from here? Kind regards.

Vincent Heubach
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 27, 2021

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

Like ReneM92 likes this
TAGS
AUG Leaders

Atlassian Community Events