Unable to create .git/index.lock File exists

时间:2026-02-14 01:43:20

1、git commit -aGetting fatal: Unable to create '/Users/justin/Sites/myapp/.git/index.lock'物民央阅侵: File exists.

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

2、解决办法:找到index.lock 删除即鬼肥可

cd .gitdel index.lock

3、Try

rm -f ./.git/index.lock

© 2026 智德知识库
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com