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

報(bào)錯(cuò)
原因:
這個(gè)錯(cuò)誤提示表明 Git 索引被鎖定,可能是由于并發(fā)操作或進(jìn)程崩潰導(dǎo)致的
解決:
手動(dòng)刪除鎖定文件:在 Git 倉(cāng)庫(kù)的 .git 目錄中,查找可能存在的鎖定文件(例如 index.lock)并將其刪除。但請(qǐng)注意,手動(dòng)刪除文件時(shí)要謹(jǐn)慎,確保您了解其可能帶來(lái)的影響。