解決github push錯誤The requested URL returned error: 403 Forbidden while accessing

github push錯誤:

git push -u origin master
error: The requested URL returned error: 403 Forbidden while accessing https://github.com/huangzhazha/studygit.git/info/refs
fatal: HTTP request failed

git version 1.7.1


OS:CENTOS

解決方案:

vim .Git/config

修改

[remote "origin"]  
    url = https://github.com/huangzhazha/studygit.git

爲:

[remote "origin"]
        url = https://[email protected]/huangzhazha/studygit.git

再次

git push -u origin master

彈出框輸入密碼,即可提交。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章