Explore Courses Blog Tutorials Interview Questions
+2 votes
in DevOps and Agile by (19.4k points)
edited by

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 could that mean?

1 Answer

+2 votes
by (27.5k points)
edited by

This could mean 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 scenarios, 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

Browse Categories