问题描述:
使用git push 报错:
error: The requested URL returned error: 403 Forbidden while accessing https://github.com/Newlyfly/Hello_World.git/info/refs
fatal: HTTP request failed
解决方案:
解决方案来源博客地址:http://blog.csdn.net/happyteafriends/article/details/11554043
vim .git/config
修改
- [remote "origin"]
- url = https://github.com/Newlyfly/Hello_World.git
为:
- [remote "origin"]
- url = https://[email protected]github.com/Newlyfly/Hello_World.git
再次git push,弹出框输入密码,即可提交
时间: 2024-07-30 03:23:56