git 403

git clone 时 ,权限不够。
如 fatal: unable to access : The requested URL returned error: 403
可能原因是,你之前在本电脑使用过git.
但是以前和现在又不是同一个账户。所以当你现在使用 git clone url 时 ,默认使用以前的账户信息。所以出现没有权限的状况。

解决方法:
重置本机保留的git config 信息。
命令如下:

git config --system --unset credential.helper
1
然后你再次克隆的时候,就会让你输入用户名和密码了
补充:如果只重置 仓库的密码信息,则去掉--system

作者:多学习_
来源:CSDN
原文:https://blog.csdn.net/qq_27263265/article/details/83241364
版权声明:本文为博主原创文章,转载请附上博文链接!

posted @ 2019-04-12 11:41  陈跃进同志  阅读(1098)  评论(0编辑  收藏  举报