git 重置用户名 密码信息

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

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

git config --system --unset credential.helper

然后你再次克隆的时候,就会让你输入用户名和密码了

猜你喜欢

转载自blog.csdn.net/qq_27263265/article/details/83241364
今日推荐