记一次git克隆失败 fatal unable to get credential storage lock File exists

记一次git克隆失败,以下是我的处理方案

fatal unable to get credential storage lock File exists

解决方法

把C盘,用户文件夹下的 .git-credentials.lock 文件删掉

可能原因

可能是因为之前提交的时候强制中断导致的git生成了 lock 文件

 

转载1自:http://t.zoukankan.com/wbyixx-p-13839409.html

2自:

记录一次使用git克隆代码出现的fatal: Authentication failed for

在name、email都设置过的情况下
1、清理windows凭据
2、执行命令git config --system --unset credential.helper
3、重新进行clone就好了
————————————————
版权声明:本文为CSDN博主「snappy_L」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/snappy_L/article/details/100175544

posted @ 2021-05-14 10:16  张小牛1024  阅读(2234)  评论(0)    收藏  举报