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

remote: Please see for more information.

fatal: unable to access ‘': The requested URL returned error: 403

Official explanation:


To fix the error, follow the below steps:

  1. Your Profile Settings

2. Click Developer settings below on the right side.

3. Click Personal access tokens.

4. Click Generate New Token

5. Write the token name:

6. After generating the token, Copy this.

7. This token is used as a password.

Important Note: To store the token git credential so you don’t have to type the token every time, use this command before pushing.

git config credential.helper store

Permanently Save Token:

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

2. Add the new origin using the following command in your terminal.

git remote add origin https://<TOKEN><USERNAME>/<REPO>.gitExample:git remote add origin

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



Senior Software Engineer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store