DEV Community

Cover image for Can't push to your GitHub repo? I can help with that.
Jenna Ritten for IBM Developer

Posted on

Can't push to your GitHub repo? I can help with that.

Welcome back to Tutorial Tuesday!

Have you been working on a project for a while and recently realize you can no longer push your changes to your git repo?
Did you receive the following error?

Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.

fatal: unable to access <git_repo>: The requested URL returned error: 403
Enter fullscreen mode Exit fullscreen mode

SAME!
Alt Text

But don't worry, I got you! I primarily work on MacOS, but I will walk you through how to remedy this. The problem is that GitHub now requires the use of Personal Access Tokens to access your repos locally on your computer.

Long story short, you will need to do 2 things:
1. create a Personal Access Token in GitHub
2. update your Keychain Access with the new token

So let's get you back up and running!

You will need to navigate to your GitHub profile.

Alt Text

Select Settings from the dropdown menu.

Alt Text
Alt Text

Under Account settings, click on the Developer settings tab.

Alt Text

Select Personal access tokens from the left tab.

Alt Text

Click the Generate new token button

Alt Text
Alt Text

Select the Scope of access you want the token to have to your GitHub account.

Alt Text

REMEMBER to copy your personal access token someplace SAFE!
You won't be able to access it later.

Alt Text

Find Launchpad from the menubar or in Applications.

Alt Text

Open up Launchpad.

Alt Text

Search for Keychain Access.

Alt Text

Open up Keychain Access.

Alt Text

Open up the github.com keychain access.

Alt Text

Click on the checkbox next to Show password.

Alt Text

Enter in your system admin Password.

Alt Text

Click Allow.

Alt Text

Add the Personal access token to Show password.
Click Save Changes.

Alt Text

Now PUSH THOSE CHANGES to your GitHub repository!

Alt Text

VOILÀ!

You've Got This!

Alt Text

Tune in next week for more Tutorial Tuesday fun!

Connect w Me!
https://linktr.ee/jritten

Discussion (0)