【问题标题】:fatal: Unable to create '/.git/index.lock': File exists致命:无法创建'/.git/index.lock':文件存在
【发布时间】:2013-05-12 05:43:02
【问题描述】:

当我尝试重命名 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.

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

【问题讨论】:

标签: xcode xcode4.5


【解决方案1】:

试试

rm -f ./.git/index.lock

在您的存储库目录中。

【讨论】:

  • @DesertRose 试试rm .git/index.lock
  • @Deepesh Gairola 为我工作!
【解决方案2】:

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

【讨论】:

    【解决方案3】:

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

    【讨论】:

      猜你喜欢
      • 2012-12-09
      • 2011-12-13
      • 1970-01-01
      • 2016-09-02
      • 2012-08-04
      • 2019-07-11
      • 1970-01-01
      • 1970-01-01
      • 2022-01-22
      相关资源
      最近更新 更多