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

朱雀 2022-05-11 02:38 269阅读 0赞

github push错误:

  1. git push
  2. error: The requested URL returned error: 403 Forbidden while accessing https://github.com/wangz/future.git/info/refs

git version 1.7.1

OS:CENTOS

解决方案:

vim .git/config

修改

  1. [remote "origin"]
  2. url = https://github.com/wangz/example.git

为:

  1. [remote "origin"]
  2. url = https://wangz@github.com/wangz/example.git

再次git push,弹出框输入密码,即可提交

发表评论

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

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

相关阅读