Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+10 votes

When using the command "git push origin main" I am met with:

"remote: Permission to LukeNHeinrichs/TestRepo.git denied to LukeHeinrichs.
fatal: unable to access 'https://github.com/LukeNHeinrichs/TestRepo.git/': The requested URL returned error: 403"

asked in CSC305 Fall 2023 by (1 point)

1 Answer

+5 votes

Incase anyone else runs into this error, it is likely caused by preexisting credentials on your computer. To fix this, follow these steps:

  1. Search for and open "Credential Manager" in the windows search bar.
  2. Select "Windows Credentials".
  3. Under "Generic Credentials", find "git:https://github.com" and click on it.
  4. Select "Remove".

After this, a login pop up will now happen when sending the push command in git for the first time.

answered by (1 point)
...