【问题标题】:Error in deleting/addind file from appharbor using git "Unable to create 'f:/git/xyz/WorkerProcess/.git/index.lock': File exists"使用 git 从 appharbor 删除/添加文件时出错“无法创建‘f:/git/xyz/WorkerProcess/.git/index.lock’:文件存在”
【发布时间】:2013-07-29 04:58:40
【问题描述】:

我想从本地 git hub 文件夹以及托管的 app-harbor 文件夹中删除 bin[或尝试运行 $git add .],但我无法删除文件夹并出现以下错误

 $ git rm -r bin [ $ git rm -f bin]
 fatal: Unable to create 'f:/git/xyz/WorkerProcess/.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.

【问题讨论】:

    标签: git appharbor


    【解决方案1】:

    它对我有用:

    $ git clean -f  .git/index.lock
    Removing .git/index.lock
    comp1@SHAILESH01 /f/git/xyz/WorkerProcess (master)
    $ git init
    Reinitialized existing Git repository in f:/git/xyz/WorkerProcess/.git/
    comp1@SHAILESH01 /f/git/xyz/WorkerProcess (master)
    $ git add .
    comp1@SHAILESH01 /f/git/xyz/WorkerProcess (master)
    $ git rm  bin
    fatal: not removing 'bin' recursively without -r
    comp1@SHAILESH01 /f/git/xyz/WorkerProcess (master)
    $ git rm -r -f bin
    

    【讨论】:

      猜你喜欢
      • 2011-12-13
      • 2012-08-04
      • 2013-05-12
      • 2012-12-09
      • 2016-08-09
      • 2012-03-06
      • 1970-01-01
      • 2014-02-05
      • 2010-11-06
      相关资源
      最近更新 更多