取消链接文件失败。我应该再试一次吗? [英] Unlink of file Failed. Should I try again?

查看:160
本文介绍了取消链接文件失败。我应该再试一次吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的本​​地git存储库中的某个文件出错了。当我尝试更改分支时,它说:

 文件'templates / media / container.html'的未链接失败。我应该再试一次吗? (y / n)

这意味着什么?

解决方案

这可能意味着另一个程序正在使用该文件,这会阻止git在尝试更改分支时将文件移入或移出工作目录。

我在Windows Vista上发生过这种情况,其中eclipse是使用文件的程序。该文件可能实际上并未在eclipse中打开,但可能已由eclipse运行的进程打开。

在这个事件中,请尝试在任何可能使用它的应用程序中关闭文件。如果这不起作用,请完全退出可能打开文件的任何应用程序。

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?

解决方案

This could mean that another program is using the file, which is preventing git from "moving" the file into or out of the working directory when you are attempting to change branches.

I have had this happen on Windows Vista where eclipse is the program "using" the file. The file may not be actually open in eclipse but may have been opened by a process run by eclipse.

In this event, try closing the file in any applications that might have used it. If that doesn't work, completely exit any applications which may have opened the file.

这篇关于取消链接文件失败。我应该再试一次吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆