Home > database >  git push not working , error is "The requested URL returned error: 403" [duplicate]
git push not working , error is "The requested URL returned error: 403" [duplicate]

Time:09-21

i am learning git veriosn control and trying to push code to repository ,but i am facing two erros

1:remote: Permission to username/repo name denied to "username".

2 fatal: unable to access https://github.com/username/repositoryname/: The requested URL returned error: 403**

CodePudding user response:

You need to authenticate with GitHub. (This is NOT the same as signing into VS Code.) In short, you either need to generate an SSH key or a personal access key. See https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/about-authentication-to-github#authenticating-with-the-command-line for details.

CodePudding user response:

There are a few possible causes for this problem:

  1. You typed an incorrect password. Make sure you are using the correct GitHub password for the account. The Git client on the A2 Hosting server requires a modified HTTPS URL to work correctly.

  2. Make sure you have access to the repo.

  • Related