The image below shows a 403 error which means means credentials errors or forbidden (you don’t have permission to push).
Solution-1
Step-1: Check if you are pushing the code to your repository
git remote -v
Step-2: If it is not your repository, open a new repository in your GitHub
Step-3: Copy your repository link
Step-4: Go to the terminal and write the following command:
git remote set-url origin your-repo-link
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
Solution-2
Step-1: Go to your Start tab on windows and search for Credential Manager.
Step-2: Click on the Credential Manager and then click on Windows Credential
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
Top comments (0)