Git unlink of file failed - Unlink of file Failed. Should I try again?

16.0K    Asked by Amitraj in Devops , Asked on Jun 8, 2021

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/container.html' failed. Should I try again? (y/n)

What  does it mean?

Answered by anu rhea

Getting message of git unlink of file failed means that another program is using the same file, which is preventing git from "moving" the file into or out of the working directory when you are attempting to change branches.


In this sort of scenario, try closing the file in any applications that might have used it. If that does not work, completely exit any applications which may have opened the file



Your Answer

Interviews

Parent Categories