git clone 拉取github上面的代码报错:fatal: Authentication failed for xxx解决

1.打开git bash,输入密码:git config --system --unset credential.helper
2.结果报错:error: could not lock config file xxx: Permission denied
3.打开cmd窗口,输入where cmd,找到cmd.exe路径后,右击cmd.exe以管理员身份运行
4.在cmd窗口输入:git config --system --unset credential.helper,成功!
5.打开git bash窗口,重新clone,输入gitlab用户名和密码后,clone成功!

猜你喜欢

转载自www.cnblogs.com/rrl92/p/11597417.html