删除 TFS 中的本地文件夹 [英] Delete Local Folder in TFS

查看:62
本文介绍了删除 TFS 中的本地文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是从 TFS 映射的一个大型项目的一部分,在该项目中有一个我已经完成工作的文件夹.我不想要那个文件夹了,所以我想删除我的本地副本.问题是 TFS 想要镜像更改并从源代码管理中删除文件夹,我不想将其从 TFS 中删除.

我能找到的唯一方法是取消映射工作区,然后浏览并获取我需要处理的所有其他文件夹.

无论如何我可以在本地删除该文件夹吗?

解决方案

这是一个较旧的帖子,但由于唯一给出的答案似乎不完全正确"对我来说,无论如何我想回答:我在博客上(用德语)在这里写了这篇文章::

<块引用>

...如果您执行获取特定版本...";在文件上,并选择变更集 1,文件将在本地删除,服务器将知道这一点.源代码管理资源管理器中文件的颜色将从黑色变为灰色,并带有未下载"字样.在最新一栏中.

变更集 1 是 Team Foundation Server 实例上的特殊变更集.它是作为设置例程的一部分创建的,只包含一件事 - 源代码控制树中的根节点 ($/).如果您对任何实际文件执行了变更集 1 的获取,那么它们在该时间点将不存在于系统中,因此将在本地删除并且服务器会知道这一点.

过程完成后,最新"列将显示未下载".

此后,可以安全地删除文件系统中的任何剩余文件.

I'm part of a large project mapped from TFS, within that project there is a folder which I have finished working on. I don't want that folder anymore so I'd like to delete my local copy. The problem is that TFS wants to mirror the change and delete the folder from source control, I don't want to remove it from TFS.

The only way I can find to do this is to unmap the workspace, and then go through and get all the other folders I need to work on.

Is there anyway I can just delete that folder locally?

解决方案

This is an older post, but since the only given answer seems "not entirely correct" to me I'd like to answer anyway: I blogged about this (in german) here: blog.nils-andresen.de

If you have a local copy, that you want to un-get or un-download like this:

simply right-click the folder and then click "Get Specific Version" or "Advanced > Get Specific Version" and specify Changeset 1.

Here's why from Martin Woodward's TFS Top Tips:

...if you do a "Get Specific Version..." on the files, and select Changeset 1, the files will be deleted locally and the server will know this. The color of the file in the Source Control explorer will go from black to gray and will have the phrase "Not downloaded" in the latest column.

Changeset 1 is a special changeset on your Team Foundation Server instance. It was created as part of the setup routine and only contains one thing - the root node ($/) in your source control tree. If you do a get for Changeset 1 on any actual files then they will not exist at that point in time on the system so will be deleted locally and the server will know this.

When the process is complete the "Latest"-column will show "not downloaded".

After that any remaining files in the filesystem can safely be removed.

这篇关于删除 TFS 中的本地文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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