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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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
Community showcase
Published in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

5,837 views 4 13
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you