git 使用 push 提交到遠端倉庫出現 The requested URL returned error: 403 錯誤
摘要:記錄了使用push提交到遠端倉庫出現 The requested URL returned error: 403 錯誤的解決方法。
問題描述
$ git push -u origin master
remote: Permission to userName/repositorieName.git denied to clxering. fatal: unable to access 'https://github.com/userName/repositorieName.git/': The requested URL returned error: 403
問題原因
問題主要出在原註冊賬號上,系統儲存了賬號的資訊。在使用新帳號時,資訊不一致,所以報錯。
解決方案
rundll32.exe keymgr.dll,KRShowKeyMgr $ git push -u origin master
Counting objects: 9, done. Delta compression using up to 8 threads. Compressing objects: 100% (4/4), done. Writing objects: 100% (9/9), 716 bytes | 716.00 KiB/s, done. Total 9 (delta 0), reused 6 (delta 0) To https://github.com/userName/repositorieName.git * [new branch]master -> master Branch 'master' set up to track remote branch 'master' from 'origin'.