我知道这是一个常见的问题,但即使我采用了各种解决方案,我仍然无法更改用户名。每次尝试将我的更改推送到git时,我都会收到以下错误信息。
我想把用户名从
PS C:\storage\class\11-1\Angular> git push origin DevBW-AngularAws
remote: Permission to varun9797/BetterWorldUI.git denied to test9777.
fatal: unable to access 'https://github.com/varun9777/BetterWorldUI.git/': The requested URL returned error: 403
我也尝试了以下命令。
git config credential.username "varun9777"
但仍然在推送时遇到相同的错误。我想把用户名从
abc-xyz
改为varun9777
请帮忙,谢谢。
git remote set-url origin https://new url with username replaced
命令将 URL 更新为您的新用户名。 - Sourav Duttagit remote set-url origin https://github.com/varun9797/BetterWorldUI.git/
- Sourav Dutta