github push错误:
- git push
- error: The requested URL returned error: 403 Forbidden while accessing https://github.com/wangz/future.git/info/refs
OS:CENTOS
解决方案:
vim .git/config
修改
- [remote "origin"]
- url = https://github.com/username/example.git
- [remote "origin"]
- url = https://username@github.com/username/example.git
再次git push,弹出框输入密码,即可提交
或者修改为
- [remote "origin"]
- url = https://username:password@github.com/username/example.git