Error in deleting/addind file from appharbor using git “Unable to create 'f:/git/xyz/WorkerProcess/.git/index.lock': File exists”

后端 未结 1 491
太阳男子
太阳男子 2021-01-26 10:23

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

1条回答
  •  后悔当初
    2021-01-26 10:56

    It works for me :

    $ 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
    

    0 讨论(0)
提交回复
热议问题