git错误: The requested URL returned error: 403 Forbidden while accessing https://github.com/wangz/futu

来源:互联网 发布:淘宝iphone版 编辑:程序博客网 时间:2024/05/19 18:42

github push错误:

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


V-KING是你的github用户名

解决方案:

vim .git/config

修改

[plain] view plaincopyprint?
  1. [remote "origin"]  
  2.     url = https://github.com/V-KING/example.git  
为:
[plain] view plaincopyprint?
  1. [remote "origin"]  
  2.     url = https://V-KING@github.com/wangz/example.git  
再次git push,弹出框输入密码,即可提交