使用 TFS 源代码管理 - 如何删除文件

发布于 2024-09-18 03:26:36 字数 254 浏览 4 评论 0原文

我是一名孤独的开发人员,我现在使用 TFS 2010,直到最近才使用 VSS。 我发现很难找到任何适合初学者的书籍来帮助我使用它。 所以我现在已经将我的项目纳入了源代码管理中。但是当我签入时,我得到了对一些我不再使用的文件的引用。如何从 TFS 源代码控制存储库中删除文件?

因此,在下面的示例中,您可以看到来自不同项目的许多我不想看到的文件。

在此处输入图像描述

I am a lone developer, and I am now using TFS 2010, having until recently used VSS.
I have not found it easy to get any books for beginners to help me use this.
So I have now got my project in source control. But when I check in I get references to a number of files that I no longer use. How do I remove files from the TFS Source Control repository?

So in the example below, you can see lots of files from different projects that I do not want to see.

enter image description here

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

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

发布评论

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

评论(4

小巷里的女流氓 2024-09-25 03:26:36

单击看起来像解决方案 (.sln) 文件图标的最后一个图标(最后一个图标位于顶部垂直行)。它位于刷新图标旁边、“评论”框上方。这应该清除所有不相关的项目文件,并仅显示当前项目中的文件。

Click on the last icon that looks like a solution (.sln) file icon (last icon on the top vertical row). It's right next to the refresh icon and just above the "Comment" box. That should clear all non-related project files, and only show the files on your current project.

沐歌 2024-09-25 03:26:36

在 Visual Studio 的源代码管理资源管理器中,只需右键单击文件和文件夹并选择“删除”即可。然后再次右键单击并选择“签入挂起的更改”。

In Source Control Explorer in Visual Studio, simply right-click on files and folders and choose "Delete". Then right-click again and choose "Check-in pending changes".

瞳孔里扚悲伤 2024-09-25 03:26:36

您需要首先销毁这些文件,然后只有这些文件将从源代码管理中删除。

您无法对这些文件进行任何更改 - 它们将保留在源代码管理中,直到您从 TFS 中永久销毁它们。

有关如何销毁的详细信息,请参阅TF Destroy命令实用程序。

You need to Destroy those files first, then only those files will get removed from source control.

You can't make any changes in those files - they remain in source control until you destroy them permanently from TFS.

For more info about how to destroy see TF Destroy command utility.

辞慾 2024-09-25 03:26:36

屏幕截图中的文件(大部分)列为添加 - 它们尚未在 TFS 中,因此从 TFS 中删除它们不是您想要的。相反,您想忽略它们,尽管这可能很棘手:如何忽略文件/ TFS 中的目录以避免它们进入中央源存储库?

The files in your screenshot are (mostly) listed as add - they are not in TFS yet, so deleting them from TFS is not what you want. Rather you want to ignore them, though that can be tricky: How to ignore files/directories in TFS for avoiding them to go to central source repository?

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