Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,368,231
Community Members
 
Community Events
168
Community Groups

How to change login credentials for Github?

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

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).

Thank you, got it now.

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?

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

Atlassian Community Events