大家好,又见面了,我是你们的朋友全栈君。
git clone 时 ,权限不够。 如 fatal: unable to access : The requested URL returned error: 403 可能原因是,你之前在本电脑使用过git. 但是以前和现在又不是同一个账户。所以当你现在使用 git clone url 时 ,默认使用以前的账户信息。所以出现没有权限的状况。
解决方法: 重置本机保留的git config 信息。 命令如下:
git config --system --unset credential.helper
然后你再次克隆的时候,就会让你输入用户名和密码了
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/126662.html原文链接:https://javaforall.cn