解决:关于Git无法提交 index.lock File exists的问题
生活随笔
收集整理的這篇文章主要介紹了
解决:关于Git无法提交 index.lock File exists的问题
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
問題
今天提交代碼時,在一次提交,莫名其妙沒成功后,再次用git commit -a命令時,出現(xiàn)以下錯誤,無論是用git還是TortoiseGit等其他客戶端都會出現(xiàn)以下這個問題。。
錯誤日志
$ git commit -a
fatal: Unable to create 'XXXXXX/.git/index.lock': File exists.
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 刪除即可
rm /home/xxx/.git/index.lock
創(chuàng)作挑戰(zhàn)賽新人創(chuàng)作獎勵來咯,堅持創(chuàng)作打卡瓜分現(xiàn)金大獎總結(jié)
以上是生活随笔為你收集整理的解决:关于Git无法提交 index.lock File exists的问题的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: dcs系统中数据服务器的冗余,如何提升D
- 下一篇: Himall商城ObjectHelper