使用git从appharbor删除/ addind文件时出错“无法创建'f:/git/xyz/WorkerProcess/.git/index.lock':文件存在” [英] Error in deleting/addind file from appharbor using git "Unable to create 'f:/git/xyz/WorkerProcess/.git/index.lock': File exists"
本文介绍了使用git从appharbor删除/ addind文件时出错“无法创建'f:/git/xyz/WorkerProcess/.git/index.lock':文件存在”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想从本地git hub文件夹以及托管app-harbour文件夹中删除bin [或尝试运行$ git add。],但我无法删除文件夹并收到错误消息。
I want delete bin[or trying to run $git add .] from local git hub folder as well as on hosted app-harbor folder but i am unable to delete folder and getting following error
$ 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 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
这篇关于使用git从appharbor删除/ addind文件时出错“无法创建'f:/git/xyz/WorkerProcess/.git/index.lock':文件存在”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文