解决github push错误: The requested URL returned error:403 Forbidden while accessing

小灰灰 2021-06-24 15:59 415阅读 0赞

解决git push错误

The requested URL returned error:403 Forbidden while accessing

答案:私有项目,没有权限,输入用户名密码,后者远程地址采用这种类型:vi.git/config

[Premote "origin"]

  1. url=https://github.com/用户名/仓库名.git

修改为

[Premote "origin"]

  1. url=https://用户名:密码@github.com/用户名/仓库名.git

发表评论

表情:
评论列表 (有 0 条评论,415人围观)

还没有评论,来说两句吧...

相关阅读