This is very weird. I’ve used github before on this computer. Nothing changed, no username of other account info but I can’t push any files to my repos anymore.
This is what I do when I create a new repo:
cd path/to/project
git init
git status
git add .
git commit -m ‘First commit’
git log
==
github: create a new repo with readme. Copy url
The thing to hate for being overcomplex and hostile is git itself, not Github. And there’s not much defense I can give for git, it really is that bad. Do this to fix your repo:
In the future, clone your repos using ssh and not https, and they’ll always be writable. You can get the ssh url from the green “clone or download” button. Alternatively, use the github desktop app, which uses your ssh keys by default.
@MrsColombo I had this problem too but managed to solve it, the error is that ur computer has saved a git username and password so if you shift to another account the error 403 will appear. Below is the solution
For Windows you can find the keys here:
control panel > user accounts > credential manager > Windows credentials > Generic credentials