在 Github 上更改用户名
Change Username on Github
之前,我更改了我的 Github 帐户 用户名。我创建了一个新的 Repo,并尝试使用 git 向其推送内容。但是它 returns 错误:
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
有人解决这个问题吗?谢谢
您应该将 SSH 密钥更新为 git 本地的用户名,甚至更新为用户名。
- 更新用户名和密码
https://help.github.com/articles/setting-your-username-in-git/
- 生成 SSH 密钥并将其添加到您的 github 帐户。
https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/
之前,我更改了我的 Github 帐户 用户名。我创建了一个新的 Repo,并尝试使用 git 向其推送内容。但是它 returns 错误:
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
有人解决这个问题吗?谢谢
您应该将 SSH 密钥更新为 git 本地的用户名,甚至更新为用户名。
- 更新用户名和密码
https://help.github.com/articles/setting-your-username-in-git/
- 生成 SSH 密钥并将其添加到您的 github 帐户。
https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/