致命:无法创建“/.git/index.lock":文件存在 [英] fatal: Unable to create '/.git/index.lock': File exists

查看:74
本文介绍了致命:无法创建“/.git/index.lock":文件存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试重命名 Xcode Project 中的任何图像名称时,它会出现以下错误.

<块引用>

fatal:无法创建/.git/index.lock":文件存在.如果当前没有其他 git 进程正在运行,这可能意味着git 进程早些时候在这个存储库中崩溃了.确保没有其他 git进程正在运行并手动删除文件以继续.

不知道怎么回事.提前致谢.

解决方案

尝试

rm -f ./.git/index.lock

在您的存储库目录中.

When I try to rename any image name in my Xcode Project it gives following error.

fatal: Unable to create '/.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.

Don't know what is going wrong. Thanks in Advance.

解决方案

Try

rm -f ./.git/index.lock

In your repository directory.

这篇关于致命:无法创建“/.git/index.lock":文件存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆