2013-07-29 23 views
0

我想删除bin [或试图运行$ git add从本地的Git枢纽文件夹以及托管应用海夹],但我无法删除文件夹,并得到以下错误使用git从appharbor中删除/ addind文件时出错“无法创建'f:/git/xyz/WorkerProcess/.git/index.lock':文件存在”

$ 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. 

回答

0

它为我的作品:

$ git clean -f .git/index.lock 
Removing .git/index.lock 
[email protected] /f/git/xyz/WorkerProcess (master) 
$ git init 
Reinitialized existing Git repository in f:/git/xyz/WorkerProcess/.git/ 
[email protected] /f/git/xyz/WorkerProcess (master) 
$ git add . 
[email protected] /f/git/xyz/WorkerProcess (master) 
$ git rm bin 
fatal: not removing 'bin' recursively without -r 
[email protected] /f/git/xyz/WorkerProcess (master) 
$ git rm -r -f bin 
相关问题