libgit2 returned: the index is locked; this might be due to a concurrent or crashed process 错误解决

利用git推送本地文件到远端仓库会发生未知错误

今天就说一种错误错误类型 libgit2 returned: the index is locked; this might be due to a concurrent or crashed process

按照指示删除index.lock文件,再尝试push,即可成功。

我并没有深究为什么删除index.lock就能解决问题。不过通过猜想也可以大概了解到这个文件可能记录了一些推送的日志信息,之前的某次推送记录和本次推送索引有冲突,所以才会出现这种错误。

 转载自作者:修仙小咖

文章地址:https://blog.csdn.net/qdufye737/article/details/101177480

来源:CSDN

致力于记录学习过程中的笔记,希望大家有所帮助(*^▽^*)!
原文地址:https://www.cnblogs.com/zxhbk/p/14214631.html