当我尝试从sublime内部提交作品时,它给了我以下信息:
fatal: Unable to create 'my_project_path/.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 根本不存在!当我在终端进站时,一切都很好。
任何想法?
答案 0 :(得分:2)
试试这个
rm -f my_project_path/.git/index.lock
有时,存在阻止git释放锁的不一致性,为了以防万一,你还应该运行git一致性检查以确保你的本地git repo是一致的:
git fsck
答案 1 :(得分:1)
我将git从 2.1.0 降级为 1.9.1 ,现在一切都很好。