git push 出现 The requested URL returned error: 403

github push错误 fatal: unable to access ‘https://github.com/用户名/项目名.git/’: The re

github push错误

fatal: unable to access ‘https://github.com/用户名/项目名.git/’: The requested URL returned error: 403

解决方法:

vim .git/config
在github.com前面添加 “用户名@”

修改前

[remote “origin”]

      url = https://github.com/用户名/项目名.git

修改为:

[remote “origin”]

    url = https://用户名@github.com/项目名/项目名.git

经此, 再次push 应该就能拨开云雾见天日了~~