TFS |无法将源项目的文件组织到多个新文件夹中

问题描述 投票:0回答:1

我正在尝试组织TFS项目以应用新结构

我已将文件从父文件夹A移到子文件夹B C D但出现味精

was not renamed in the source control database because there is already an item with this name in the destination folder

任何获得最新版本的人都将面临重复文件错误

Error Msg when moving files

您对这个问题的建议解决方案顺便说一句,我有太多的文件和文件夹

visual-studio tfs azure-devops
1个回答
0
投票

在TFS中,有两种移动文件。我为这两个都创建了一个示例:

本地工作区(窗口浏览器)直接移动/拖动文件


  1. 在磁盘上,我的工作区中,我将把[[2.PNG移到主分支

    folder
enter image description here

  1. 然后我们可以检查TFS在VS中检测到的内容。一个带有add(in new)>

    地方],在“促进候选人变更”中带有删除的地方(在旧地方)。

    enter image description here

  2. 您需要同时检查添加和删除(首先升级)。最后
  3. 您将获得所需的服务器和本地资源。

    直接在解决方案资源管理器中移动文件


  1. 在解决方案资源管理器中,我将

    1.PNG

    移至* Main右键单击文件夹*,然后选择移动。
  2. enter image description here

  1. 您将直接以

    rename

    状态获得待处理的更改,
没有任何促进候选人变更。

enter image description here

  • 然后我们可以检查本地工作区,您将看到1.PNG是
  • 在工作区文件夹中自动删除

    ,即使您尚未签入更改。最后检查待处理
    更改,一切都很好并且干净。

    enter image description here


    返回您的错误:xx was not renamed in the source control database because there is already an item with this name in the destination folder

    您应该使用方法2,所以在父文件夹A和子文件夹B C D中已经存在一些具有相同名称的文件

    解决方案应该是删除B C D中的重复文件。

    © www.soinside.com 2019 - 2024. All rights reserved.