git push 403

最近想做一个学习Android的Demo但是不想放在之前的Github账号上,所以新建了一个账号。git push的时候遇到了403错误。

解决方法如下:

1、打开仓库根目录下.git/config文件
2、修改url = https://github.com/PortgasAce/Treasure.git
url = https://[email protected]/PortgasAce/Treasure.git 即在url前添加账号@

以上。

参考

git clone时,报403错误,完美解决方案

猜你喜欢

转载自blog.csdn.net/qq_15602635/article/details/80161324