git push
remote: Permission to newGithubAccount/newGithubAccountProject.git denied to myOldGithubAccount.
fatal: unable to access 'https://github.com/newGithubAccount/newGithubAccountProject.git/': The requested URL returned error: 403
I got error 403, I know that the wrong access was found, and the error message clearly shows me why: Since my git push used my previous github credentials, however, I updated the global git configuration and generated a new one .ssh/id_rsaand added the ssh key to my new github account. But this error persists, I searched this site many times on the Github.help page, but still no luck, please help.
I think I need to somehow completely clear my cache for the previous github account or delete it, and then I could access github with my new account. Or else, please advise! Many thanks!
user6536651
source
share