git提交远程仓库时报如下错误
$ git push origin master
remote: Permission to wujingfeng/OAcrm.git denied to XIII-UP.
fatal: unable to access 'https://github.com/wujingfeng/OAcrm.git/': The requested URL returned error: 403
解决方法:
- 修改当前项目中.git/config文件
将remote下的urlurl = https://github.com/github用户名/项目名称.git
修改为:url = https://github用户名:GitHub登录密码@github.com/github用户名/项目名称.git
解释一下:就是在原有的基础上添加GitHub的登录验证信息