Git bashを使ってGithubにリポジトリをプッシュしようとしています。問題は、以前は使っていたユーザー名を使っていると思っています。しかし、私は、このユーザー名を変更し、私は次のコマンドで確認するためにチェック:Git Bashは以前のユーザ名でまだ押しています
git config user.name
"CorrectName"
git config user.email
"[email protected]"
git config --global user.name
"CorrectName
git config --global user.email
"[email protected]"
しかし、Githubにはまだレポをプッシュするために、私の以前のユーザー名を使用しています。これはプッシュコマンドによって明らかです。
git push origin master
remote: Permission to CorrectName/CorrectRepo.git denied to PreviousUsername
fatal: unable to access 'https://github.com/CorrectName/CorrectRepo/': The requested URL
returned error: 403
私のレポを正常にプッシュするにはどうすればよいですか?
私はまだ1日後にこの問題が発生しています。誰にも他のアイデアはありますか? – kevin29