Requested URL returned error: 403

shafia

Shafia Rahman Chowdhury

Posted on January 1, 2024

Requested URL returned error: 403

The image below shows a 403 error which means means credentials errors or forbidden (you don’t have permission to push).

Image description

Solution-1

Step-1: Check if you are pushing the code to your repository



git remote -v


Enter fullscreen mode Exit fullscreen mode

Step-2: If it is not your repository, open a new repository in your GitHub

Image description

Step-3: Copy your repository link

Image description

Step-4: Go to the terminal and write the following command:



git remote set-url origin your-repo-link


Enter fullscreen mode Exit fullscreen mode

After the entering command, check if the git repository url changed. Write git remote -v on your terminal.

Step-5: Then, run these commands one by one



git branch -M main
git push -u origin main

Enter fullscreen mode Exit fullscreen mode




Solution-2

Step-1: Go to your Start tab on windows and search for Credential Manager.

Image description

Step-2: Click on the Credential Manager and then click on Windows Credential

Image description

Step-3: Below, Generic Credentials you will see git:https://github.com. Remove it.

Step-4 Follow the steps in this blog
https://dev.to/shafia/support-for-password-authentication-was-removed-please-use-a-personal-access-token-instead-4nbk

💖 💪 🙅 🚩
shafia
Shafia Rahman Chowdhury

Posted on January 1, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Requested URL returned error: 403
github Requested URL returned error: 403

January 1, 2024