Previously, I change my Github account username. I create a new Repo and try to push something on it using git. But it returns error:
remote: Permission to <current-username>/<repo>.git denied to <previous-username>.
fatal: unable to access 'https://github.com/<current-username>/<repo>.git/':
The requested URL returned error: 403
Anyone have a solution on this problem? Thanks
You should update your SSH key to or even the user name on your git local.
https://help.github.com/articles/setting-your-username-in-git/
https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With