1. libgit2 returned: the index is locked; this might be due to a concurrent or crashed process

报错
原因:
这个错误提示表明 Git 索引被锁定,可能是由于并发操作或进程崩溃导致的
解决:
手动删除锁定文件:在 Git 仓库的 .git 目录中,查找可能存在的锁定文件(例如 index.lock)并将其删除。但请注意,手动删除文件时要谨慎,确保您了解其可能带来的影响。
1. libgit2 returned: the index is locked; this might be due to a concurrent or crashed process
这个错误提示表明 Git 索引被锁定,可能是由于并发操作或进程崩溃导致的
手动删除锁定文件:在 Git 仓库的 .git 目录中,查找可能存在的锁定文件(例如 index.lock)并将其删除。但请注意,手动删除文件时要谨慎,确保您了解其可能带来的影响。