在使用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