Unable to create .git/index.lock File exists

时间:2024-10-12 09:29:26

1、git comm坡纠课柩it -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 .git del index.lock

3、Tryrm -f ./.git/index.lock

© 2025 长短途
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com