gitHub向上推送出现错误
fatal: unable to access ‘https://github.com/xuzhenguo/authorize.git/’: The requested URL returned error: 403
解决方法:
vim .git/config
修改前
[remote “origin”]
url = https://github.com/xuzhenguo/authorize.git
修改为:
[remote “origin”]
url = https://xuzhenguo@github.com/xuzhenguo/authorize.git
输入自己的git 用户名
本文介绍了一种常见的GitHub推送错误(fatal: unable to access ‘https://...’: The requested URL returned error: 403)及其解决方案。通过修改.git/config文件中的远程仓库URL格式,将https方式更改为包含个人用户名的格式,可以有效解决此问题。

3328

被折叠的 条评论
为什么被折叠?



