git笔记:git push时出现remote: Permission to。。。The requested URL returned error: 403错误

问题

git笔记:git push时出现remote: Permission to。。。The requested URL returned error: 403错误
出现的原因猜测是这个项目提交时,配置了错误的网址,即,你本来往自己github里面仓库写入资源,结果.git/config 配置确实其他人的仓库。
所以出现不允许~

解决方法

解决方法也很简单。

vim .git/config

git笔记:git push时出现remote: Permission to。。。The requested URL returned error: 403错误

带github的仓库,直接替换即可
git笔记:git push时出现remote: Permission to。。。The requested URL returned error: 403错误
git笔记:git push时出现remote: Permission to。。。The requested URL returned error: 403错误
然后再git push即可成功。
done!