this morning i started a new repo in github and began working on it; however for some reason whenever I wanted to push my commits with git push origin main
I wound up with this:
remote:
Permission to [myusername]/HFutures.git denied to [myusername]-png. fatal: unable to access 'https://github.com/[myusername]/HFutures.git/': The requested URL returned error: 403
I never ran into this error before and was hoping you all could help? I did some research and I think I need to use SSH, however, the workflow of creating a new repo, opening Ubuntu on my PC and running git clone and then coding a bit in the cloned repo and pushing has worked for years. What has changed?
I have tried suggestions from similar posts, which asked me to delete my github credentials from within the Windows Credentials in the Credential Manager, and this did not solve the issue. I have also tried git credential-cache exit in the command line followed by git remote set-url origin git@github.com:bkhebert/HFutures.git and now whenever i try to push the result is:
git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
I am worried that attempting to solve this on my own is only making the situation worse.