關於Git無法提交 index.lock的解決辦法


今天提交代碼時,在一次提交,莫名其妙沒成功后,再次用git commit -a命令時,出現以下錯誤,無論是用git還是TortoiseGit都會出現以下這個問題。。

$ git commit -a
fatal: Unable to create 'e:/git/Android/XXXXXX/.git/index.lock': File e
xists.

If no other git process is currently running, this probably means a
git process crashed in this repository earlier. Make sure no other git
process is running and remove the file manually to continue.

 

解決辦法:找到index.lock 刪除即可


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM