【问题标题】:GIT | What causes git error: 'fatal: Unable to create '/index.lock': Permission denied' error?吉特 |是什么导致 git 错误:'fatal: Unable to create '/index.lock': Permission denied' 错误?
【发布时间】:2016-08-06 01:38:27
【问题描述】:

我有一个自己无法回答的问题,即使有 Google 叔叔的帮助。

当我尝试在我的一个项目中使用“git checkout”命令时,出现如下错误:

'fatal: Unable to create *'some/directory/path/index.lock'*: Permission denied'

我知道这个问题与 .git 目录中的权限有关。我想知道的是什么行动导致了这种情况以及将来如何防止它们。

TL;DR 什么原因导致“致命:无法创建 '/index.lock':权限被拒绝”错误?

【问题讨论】:

    标签: git magento error-handling permissions file-permissions


    【解决方案1】:

    我还不能添加 cmets,但是谁对这个 git index.lock File exists when I try to commit, but cannot delete the file 问题的评论可能是一个答案。

    我认为他是对的,另一个进程干扰了 git repo。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-01-04
      • 1970-01-01
      • 2021-03-27
      • 2022-08-09
      • 1970-01-01
      • 2016-04-24
      • 1970-01-01
      相关资源
      最近更新 更多