git push The requested URL returned error: 403 Forbidden while accessing

Error message:

error: The requested URL returned error: 403 Forbidden while accessing https://github.com/xingfupeng/test.git/info/refs
fatal: HTTP request failed

Solution:

Modify the. Git/config file to change the following code:

[remote "origin"]  
    url = https://github.com/xingfupeng/test.git

Change to:

[remote "origin"]  
    url = https://[email protected]/xingfupeng/test.git

Again git push, pop-up box input password, you can submit

Similar Posts: