Unlink of file Failed. Should I try again?

前端 未结 30 3819
臣服心动
臣服心动 2020-12-02 03:44

Something wrong is going on with one of the files in my local git repository. When I\'m trying to change the branch it says:

Unlink of file \'templates/media         


        
30条回答
  •  半阙折子戏
    2020-12-02 04:32

    After run command

    git rm -rf foo.bar
    

    I see error

    Unlink of file 'foo.bar' failed. Should I try again? (y/n)
    

    Because another program is using this file. For example, when I run Java web application in debug model or run web application on server, I can't delete log file. Turn off application sever (or turn off debug process), re-try

    git rm -rf foo.bar
    

    I see file has been deleted.

提交回复
热议问题