Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to change login credentials for Github?

Gerhard Mueller
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!
May 9, 2020

Github will soon change its login credentials:

"Basic authentication using a password to the API is deprecated and will soon no longer work. Visit https://developer.github.com/changes/2020-02-14-deprecating-password-auth/ for more information around suggested workarounds and removal dates."

 

I have tried to change to OAuth but it does not work. I always get this when i try a push:

"Pushing to https://github.com/CarCode/Cocoa-OCPN
remote: Permission to CarCode/Cocoa-OCPN.git denied to CarCode.
fatal: unable to access 'https://github.com/CarCode/Cocoa-OCPN/': The requested URL returned error: 403"

Where do I find any information to connect Sourcetree to Github with the new authentication? Or is that not supported by Sourcetree? I use version 4.0.1 for macOS.

 

2 answers

1 accepted

0 votes
Answer accepted
P_ Mergey May 31, 2020

I guess this answer might help you.


In my case, I was able to rather simply switch to the new authentication (using personal token) which now seems to work (without sending me any depreciation notice).

Gerhard Mueller
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!
May 31, 2020

Thank you, got it now.

0 votes
bgf777 March 31, 2021

How did you get this to work? My new token works fine from command line git, but nothing I try will be accepted by sourcetree.

I'm using basic auth.

For user name i've tried my github username, the email address I use, others. But nothing works. With command line git I use my full email for username, and I use the token as the password. no problems.

What does sourcetree want as my username? The same thing command line git wants (my email)? something else?

do I need to give my token more scopes just so source tree can log in?

P_ Mergey August 16, 2021

As I wrote above, you can check answers to this related question (and maybe more particularly this one). In addition, an interesting summary of procedures can be found on Stack Overflow.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events