remote: Permission to Coderlll/etstSSSSSH.git denied to oldGitHubAccount.
fatal: unable to access 'https://github.com/newGitHubAccount/etstSSSSSH.git/':
The requested URL returned error: 403
The oldGitHubAccount is my first GitHub account.
I use the account named oldGitHubAccount to update my old Github account is OK.
I have added the new SSH with the new email.
What's the reason?
How can I do to solve this issue?
Check you git configurations.
git config --get user.name
git config --get user.email
You must set it to your new account.
Also use git SSH protocol (git@) instead of the HTTPS, so it will use your SSH key.
You can either:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.