Hi,
I have been trying to connect GitHub with Sourcetree on window however I keep getting 'login failed'.
What I did:
on GitHub, I created personal access token and when I register GitHub account I select 'Personal Access Token' for authentication instead of OAuth.
When a popup shows after I select 'Refresh Personal Access Token', I type my GitHub usename and use the personal access token that I just created as my password.
However I keep getting 'Login failed. Authentication failed for GitHub with username <usename> - Please check your account setting'.
I have done the same process for Mac with no problem. Did any window user get the same message before? I hope someone in this community can help me.
Thanks in advance!
I'm sure you've figured this out long ago or moved on, but in case anyone else stumbles upon this answer, what I think the issue was for me was not setting enough scope permissions when setting up the PAT within GitHub.
Given this is a public computer I had originally kept the scope to just read/write repo. But that failed.
When I deleted that PAT and created a new one with nearly all the scopes enabled, my authentication worked.
I wish I could say which one exactly solved my problem - I'm sure an exhaustive process of elimination could refine this answer, but hopefully this is a clue to others - doesn't seem to be mentioned anywhere else on the 'net.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.