Team Explorer Everywhere - 从待定更改中删除忽略的文件

发布于 2024-11-07 01:19:09 字数 346 浏览 8 评论 0原文

有没有办法从 Team Explorer Everywhere for TFS 的待定更改列表中删除待定更改?

我已将 .tpignore 文件添加到我的项目中,并且排除了源代码管理中不需要的某些内容(构建、WEB-INF 等)。但是,在添加忽略文件之前,团队资源管理器似乎到处都已拾取这些文件,因为它们仍保留在挂起的更改列表中。

我可以看到 Eclipse 至少发现它们应该被忽略,因为它们在项目树中都有 [Ignored] 标签。我本以为将文件添加到忽略文件会自动删除文件中存在的任何挂起的更改......

知道如何从挂起的更改中删除这些项目吗?在解决这个问题之前我无法签入,因为我不想用所有这些无关的文件弄乱我的源历史记录。

Is there any way to remove pending changes from the Pending Changes list in Team Explorer Everywhere for TFS?

I've added a .tpignore file to my project, and I'm excluding certain things that I don't want in source control (build, WEB-INF, etc). However, it looks like team explorer everywhere picked up on these files before the ignore file was added, since they remain in the pending changes list.

I can see that eclipse is at least picking up that they should be ignored, because they all have the [Ignored] label in the project tree. I would have thought that adding files to the ignore file would automatically remove any pending changes that existed for the files....

Any idea how I can remove these items from the pending changes? I can't checkin until this is resolved because I don't want to mess up my source history with all of these extraneous files.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

风铃鹿 2024-11-14 01:19:09

这是正确的 - Team Explorer Everywhere 在检测到文件已添加到 Eclipse 工作区时应用 .tpignore 过滤器。如果您在检测到 .tpignore 文件后对其进行了编辑,那么它们将保持挂起状态 - 忽略资源不会追溯。

您必须手动撤消这些挂起的更改,方法是右键单击编辑器或视图中的资源并选择“撤消挂起的更改”。如果您有充满文件的整个文件夹需要撤消,您可以在包资源管理器中选择一个文件夹,并递归撤消该文件夹的挂起更改。

That's correct - Team Explorer Everywhere applies the .tpignore filter when it detects that the files were added to your Eclipse workspace. If you edited the .tpignore file after they were detected then they will remain pended - ignoring resources is not done retroactively.

You'll have to undo these pending changes manually, by right clicking on the resource in an editor or a view and selecting Undo Pending Changes. If you have whole folders full of files to undo, you can select a folder in the Package Explorer and undo pending changes for that folder recursively.

欢你一世 2024-11-14 01:19:09

通过“待更改”窗口,您可以选择多个文件并一次性撤消所有文件。这似乎是消除损害的最简单方法。

The Pending Changes window lets you select multiple files and undo them all at once. This seems to be the easiest way to undo the damage.

丑疤怪 2024-11-14 01:19:09

或者,只需在团队资源管理器窗口中...

  1. 选择“主页”。
  2. 重新选择待定更改

重新计算应视为“待定更改”的内容

Or, simply within your Team Explorer Window...

  1. Choose 'Home'.
  2. Re-choose Pending Changes

To recalc what should be considered 'Pending changes'

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文