Unlink of file Failed. Should I try again?

前端 未结 30 3829
臣服心动
臣服心动 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:26

    This might be useful for someone; if all the above didn't work for you, follow these steps:

    1. Close your IDE (mine was Eclipse, not sure if it applies to Intellij and others) or any other app that might be using git.

    2. Open git from the command line (in my case I had git bash) and run git gc as mentioned by others.

    This did the magic for me.

提交回复
热议问题