Unlink of file Failed. Should I try again?

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

    In my case there are no processes touching the file or directory. Maybe it happens if the path is very long, because an operating system restriction (windows). Try enabling the longpath support flag in the global git configuration as indicated below:

    git config --global core.longpaths true
    

    or try to setting the yes/no answer flag if it is not conflictive for you

    set GIT_ASK_YESNO=false
    

    If the path is too long, I've not found a successful solution.

提交回复
热议问题