Git操作失敗,崩潰處理(Another git process seems to be running in this repository...)

在使用git 中過程中不免出現(xiàn)及其卡頓的情況,然而及其卡頓我們的處理一般的處理辦法就是殺掉進程等等。。但是這樣就影響了git程序。

問題:
Another git process seems to be running in this repository, e.g.an editor opened by 'git commit'. Please make sure all processes are terminated then try again. If it still fails, a git process may have crashed in this repository earlier:
remove the file manually to continue.
翻譯:
另一個git進程似乎正在這個存儲庫中運行,例如。一個由“git提交”打開的編輯器。請確認所有流程終止,然后重試。如果仍然失敗,則使用git進程可能在此存儲庫早前崩潰:
手動刪除文件以繼續(xù)。

處理辦法:
打開 .git 文件夾 刪除 index.lock 這個文件即可

rm -rf ./.git/index.lock
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。

友情鏈接更多精彩內(nèi)容