8

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

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.

不知道出了什么问题。提前致谢。

4

3 回答 3

18

尝试

rm -f ./.git/index.lock

在您的存储库目录中。

于 2013-05-17T06:13:06.150 回答
1

我在 osx 上由 Mamp 托管的 Wordpress 插件文件夹中有我的本地存储库。在 Mamp 权限设置中,本地服务器的权限设置为“www”。我将权限改回给我,“/index.lock“需要手动删除。”-问题消失了。

于 2013-09-28T16:46:27.540 回答
0

对我来说,在我的 git 存储库中的 $rm index.lock 也解决了这个问题

于 2014-05-18T23:52:56.130 回答