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
.ssh/id_rsa
The previous remote is configured to use the HTTP protocol. You can use the set-url
remote command to update your remote to use the SSH based protocol.
git remote set-url origin git@github.com:newGithubAccount/newGithubAccountProject.git