by Sai gowtham

How to fix the GitHub Support for password authentication error

Learn, how to fix the GitHub Support for password authentication was removed on August 13, 2021. Please use a personal access token instead error in macOS or Linux.

Today, I’m trying to push my code to GitHub remote repository I got the following error in my terminal.

➜  react-fileupload git: git push
remote: Support for password authentication was removed on August 13, 2021.
 Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: unable to access 'https://github.com/saigowthamr/react-fileupload.git/':
The requested URL returned error: 403

This error tells that for security reasons GitHub removes the password-based authentication from August 13, 2021.

To fix the error, follow the below steps:

  1. Open GitHub.com, click on your profile picture, then click on settings.

  2. Now, scroll to the bottom of a page and click on the Developer settings tab.

  3. Now, click on Personal access tokens and generate a new token by giving the name and expiration date, etc.

  4. Once you successfully generated the Personal access token copy it.

  5. Now, open the Git repository where you got the error and remove the current origin by running the following command.

git remote remove origin
  1. Add the new origin by using the following command in your terminal.
git remote add origin https://<PERSONALACCESSTOKEN>@github.com/<USERNAME>/<REPO>.git

For example:

git remote add origin https://gh-3jdj234rjfjdjjd2n2@github.com/saigowthamr/car-demo.git

That’s it, now you can push your code to GitHub using the git push command without any errors.

Css Tutorials & Demos

How rotate an image continuously in CSS

In this demo, we are going to learn about how to rotate an image continuously using the css animations.

How to create a Instagram login Page

In this demo, i will show you how to create a instagram login page using html and css.

How to create a pulse animation in CSS

In this demo, i will show you how to create a pulse animation using css.

Creating a snowfall animation using css and JavaScript

In this demo, i will show you how to create a snow fall animation using css and JavaScript.

Top Udemy Courses

JavaScript - The Complete Guide 2021 (Beginner + Advanced)
JavaScript - The Complete Guide 2021 (Beginner + Advanced)
64,026 students enrolled
52 hours of video content
View Course
React - The Complete Guide (incl Hooks, React Router, Redux)
React - The Complete Guide (incl Hooks, React Router, Redux)
284,472 students enrolled
40 hours of video content
View Course
Vue - The Complete Guide (w/ Router, Vuex, Composition API)
Vue - The Complete Guide (w/ Router, Vuex, Composition API)
152,857 students enrolled
48.5 hours of video content
View Course