在使用git 中過程中不免出現(xiàn)及其卡頓的情況婿失,然而及其卡頓我們的處理一般的處理辦法就是殺掉進(jì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.
翻譯:
另一個(gè)git進(jìn)程似乎正在這個(gè)存儲(chǔ)庫中運(yùn)行哩照,例如。一個(gè)由“git提交”打開的編輯器懒浮。請(qǐng)確認(rèn)所有流程終止飘弧,然后重試。如果仍然失敗砚著,則使用git進(jìn)程可能在此存儲(chǔ)庫早前崩潰:
手動(dòng)刪除文件以繼續(xù)次伶。
處理辦法:
打開 .git 文件夾 刪除 index.lock 這個(gè)文件即可
rm -rf ./.git/index.lock