Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change Username on Github

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

like image 887
fauzanrazandi Avatar asked Jul 14 '26 20:07

fauzanrazandi


1 Answers

You should update your SSH key to or even the user name on your git local.

  1. Update username and password

https://help.github.com/articles/setting-your-username-in-git/

  1. Generate SSH key and add it to you github account.

https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/

like image 200
The Lotus Sutra Avatar answered Jul 17 '26 17:07

The Lotus Sutra



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!