Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/tfs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
从本地TFS工作区删除非源代码管理文件夹/文件_Tfs - Fatal编程技术网

从本地TFS工作区删除非源代码管理文件夹/文件

从本地TFS工作区删除非源代码管理文件夹/文件,tfs,Tfs,我们的开发分支非常庞大,有时我会将自己的.sln文件放在那里或其他散乱的文件中,但我想要一种方法来删除本地映射中不严格受源代码控制的任何内容 我该怎么做?有tfpt/tf命令吗 这也与我有关,因为有时文件夹会从源代码管理中删除,但tf get不会删除它,因为“文件夹不为空”。我想在不烧焦我的工作区的情况下删除所有这些内容。一个简单的方法是创建一个新的工作区,并执行从TFS获取最新信息。这样,新工作区中的所有文件/文件夹都受源代码控制 TFS Power Tools(tfpt.exe)有一个名为s

我们的开发分支非常庞大,有时我会将自己的.sln文件放在那里或其他散乱的文件中,但我想要一种方法来删除本地映射中不严格受源代码控制的任何内容

我该怎么做?有tfpt/tf命令吗


这也与我有关,因为有时文件夹会从源代码管理中删除,但tf get不会删除它,因为“文件夹不为空”。我想在不烧焦我的工作区的情况下删除所有这些内容。

一个简单的方法是创建一个新的工作区,并执行从TFS获取最新信息。这样,新工作区中的所有文件/文件夹都受源代码控制

TFS Power Tools(tfpt.exe)有一个名为
scorch
的函数,该函数“确保源代码管理和本地磁盘相同”。这里有一篇博文对此做了一些解释。看到这个答案,与<>代码> TeeRelo> 函数

:Team Foundation版本控制工具(TF.EXE)还支持CycCH和TeeCurry.

tf vc帮助烧焦

Microsoft (R) TF - Team Foundation Version Control Tool, Version 15.129.28306.1
Copyright (c) Microsoft Corporation.  All rights reserved.

Ensures that your local disk is identical to the server's view of the
working copy.

tf vc scorch [/diff] [/noprompt] [/preview] [/recursive] [/ignore] [/unmapped]
             [/exclude:itemspec1,itemspec2,...] [itemspec]
Microsoft (R) TF - Team Foundation Version Control Tool, Version 15.129.28306.1
Copyright (c) Microsoft Corporation.  All rights reserved.

Compares the current state of the workspace on disk with the server's view,
either to clean the workspace or to promote unpended local changes.

tf vc reconcile /clean [/diff] [/noprompt] [/preview] [/recursive] [/ignore]
                [/unmapped] [/exclude:itemspec1,itemspec2,...] [itemspec]

tf vc reconcile /promote [/adds] [/deletes] [/diff] [/noprompt] [/preview]
                [/recursive] [/noignore] [/exclude:itemspec1,itemspec2,...]
                [itemspec]
tf vc帮助协调

Microsoft (R) TF - Team Foundation Version Control Tool, Version 15.129.28306.1
Copyright (c) Microsoft Corporation.  All rights reserved.

Ensures that your local disk is identical to the server's view of the
working copy.

tf vc scorch [/diff] [/noprompt] [/preview] [/recursive] [/ignore] [/unmapped]
             [/exclude:itemspec1,itemspec2,...] [itemspec]
Microsoft (R) TF - Team Foundation Version Control Tool, Version 15.129.28306.1
Copyright (c) Microsoft Corporation.  All rights reserved.

Compares the current state of the workspace on disk with the server's view,
either to clean the workspace or to promote unpended local changes.

tf vc reconcile /clean [/diff] [/noprompt] [/preview] [/recursive] [/ignore]
                [/unmapped] [/exclude:itemspec1,itemspec2,...] [itemspec]

tf vc reconcile /promote [/adds] [/deletes] [/diff] [/noprompt] [/preview]
                [/recursive] [/noignore] [/exclude:itemspec1,itemspec2,...]
                [itemspec]

你不想使用“tfpt烧焦”有什么原因吗?@nschonni真棒,正是我想要的。回答一个问题,我会把它标记为正确的。这个分支是一个300项目的解决方案,有几十万个测试。这样做需要几个小时。