github push错误:
[html] view plain copy
git push
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
修改
[plain] view plain copy
[remote "origin"]
url = https://github.com/wangz/example.git
为:
[plain] view plain copy
[remote "origin"]
url = https://wangz@github.com/wangz/example.git
再次git push,弹出框输入密码,即可提交
http://blog.csdn.net/happyteafriends/article/details/11554043
本文转自守护我们的幸福 51CTO博客,原文链接:http://blog.51cto.com/12085228/1983450,如需转载请自行联系原作者