Accessing Github password fail
Asked by MilosDesk:

SourceTree Sucks!

I have been using Sourcetree to access a github account for months. Now all of a sudden when I attempt to pull the project or push the project the password fails. I have gone into tools and into authenication to refresh the password and that fails.

I can however go to Github.com and log in using the very same password and there are no issues.

THIS IS SO DAMN FRUSTRATING!!!!!!!!!!!


Answers:
author: karmazinkd
body: Solution found.

The same thing for me (Windows 10), OAuth doesn't work, it always shows status 'successful' but I still can't see my repos.

What worked for me was to set Authentication: **Basic**, enter my github username,

and the *most important thing* is to enter a **Personal access token** instead of my password (in the password prompt window). Obvious, isn't it? (sarcasm)

To create your personal access token you need to log into your github account, go to Settings, and open the 'Personal access tokens' tab. There you can create your token, give it the permissions you want.

Don't forget to copy the token and save it somewhere safe, you won't have access to it after you close the window. You can only regenerate it if you lost it.

p.s. still, Sourcetree is the best VCS app :)

Cheers

comments: author: Sheela Omkarappa
body: Still this is not working for me.

This is so frustrating!!!


author: Daniel Eads
body: Hi there,

I'm sorry to hear you're having some trouble getting Sourcetree authorized with your Github account. Github announced earlier this year that they'd be [disabling passwords over basic auth](https://developer.github.com/changes/2020-02-14-deprecating-password-auth/) - and that time window (November 2020) has come.

You have a couple options:

1. Generate a [Personal Access Token in Github](https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token) and then paste that in place of your Github password in Sourcetree
2. Switch from Basic authentication to OAuth in the **Auth type** dropdown in Sourcetree for your Github account. Then click the "Connect Account" button to authorize Sourcetree (this should open your browser and just be one click in Github if you're logged in on the web already)  
   ![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/119178i901BB57999EFD264/image-dimensions/513x232?v=v2 "image.png")

That should get you sorted in short order. But I'm happy to help if you run into any snags!

Cheers,  
Daniel

comments: author: MilosDesk
body: I have followed this as close as I can. I created the token and copied it from the token generator in Github. I have attempted to replace the password with the token in the authorization tab but nothing is working. The window you show in step 2 does not look like the one I get in windows.

And when I attempt to pull information I get a window called Credential Helper Selector. I have selected each of the options one at a time in this window and none of them are giving me access to github to pull the files.

What am I missing now.![helper.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/119188iFB289FE96383B076/image-size/large?v=v2&px=999 "helper.jpg")![auth.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/119189i8FC712443D645C94/image-size/large?v=v2&px=999 "auth.jpg")


author: Lockedown5000
body: I'm having this same issue


author: MartijnPW
body: Me too. It is really frustrating.  
On my system, I use 2 different github accounts (work vs personal). The work account is working fine, but for the personal github I can't get access.   

Tried both OAuth and the 'basic with PAT', neither give me access.

![auth ok.png](https://community.atlassian.com/t5/image/serverpage/image-id/119590iB1F6068BE513395D/image-size/large?v=v2&px=999 "auth ok.png")![fetching fails.png](https://community.atlassian.com/t5/image/serverpage/image-id/119591i859C5C69D0C8B5C0/image-size/large?v=v2&px=999 "fetching fails.png")Also tried both SSH and HTTPS (should that matter? Are all combinations of SSH/HTTPS and PAT/OAuth allowed?).   

What am I doing wrong here?

Thanks,

Martijn


Tags: atl-gruland