【问题标题】:Grunt: .git/index.lock File exists error when running grunt-gh-pagesGrunt:运行 grunt-gh-pages 时出现 .git/index.lock 文件存在错误
【发布时间】:2016-04-28 22:40:34
【问题描述】:

当运行grunt-gh-pagesgrunt 时,它在任务中间失败并出现错误

警告:致命:无法创建 '/home/richard/src/tumblr-argument-generator/.git/index.lock': 文件 存在。

如果当前没有其他 git 进程正在运行,这可能意味着 git 进程早些时候在这个存储库中崩溃了。确保没有其他 git 进程正在运行并手动删除文件以继续。采用 --强制继续。

由于警告而中止。

我尝试使用sudo rm -f ./.git/index.lock 删除文件(错误仍然存​​在),我尝试删除gh-pages 分支+ 删除index.lock,但仍然出现错误,我尝试删除我的文件+ 修剪Github 上的gh-pages 分支+ 并从 Github 重新下载新副本(同样的错误)。

如何让grunt-gh-pages 正确运行?

【问题讨论】:

    标签: git gruntjs github-pages


    【解决方案1】:

    我找到了解决方案。线索是.grunt 文件夹包含一个grunt-gh-pages 子文件夹。

    删除.grunt 文件夹修复了所有.git/index.lock': File exists 错误!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-04-22
      • 1970-01-01
      • 2014-06-23
      • 2016-08-09
      • 1970-01-01
      • 2016-12-16
      • 2014-11-04
      • 2018-12-09
      相关资源
      最近更新 更多