Problem
When you try to push changes to a GitHub repository from Hostginger Server using an HTTPS URL, if you receive the following error message:
error: The requested URL returned error: 403 Forbidden while accessing https://github.com/github-username/github-repository-name.git/info/refs
Cause
There are few possible causes for this problem:
- You entered the wrong password. Verify that you are logging into the account with the right GitHub password.
- A changed HTTPS URL is necessary for the Hostginger Server's Git client to function properly. If this is the issue, attempting to perform a push action does not even trigger the password prompt.
Resolution
There are two ways to fix the "403 Forbidden" issue if you are certain that you are using the right GitHub password:
- Using SSH.
- Modification of the HTTPS URL.