Git遇到error: Unable to create 'E:/zyw/xm/ssrb_uni_oa_ht/.git/index.lock': File exists.error: Unable to create 'E:/zyw/xm/ssrb_uni_oa_ht/.git/index.lock': File exists的解决办法

Git遇到error: Unable to create 'E:/zyw/xm/ssrb_uni_oa_ht/.git/index.lock': File exists.

 

 

解决方案:

在 .git 同级目录中找到 index.lock ,删除即可;

或在 .git 同级目录执行 rm -f .git/index.lock 将文件删除即可提交成功;

 

posted @ 2022-07-28 23:32  zhang_you_wu  阅读(147)  评论(0)    收藏  举报