我正在尝试组织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
任何获得最新版本的人都会遇到重复文件错误
您对这个问题的建议解决方案 顺便说一句,我的文件和文件夹太多了
答案 0 :(得分:1)
在TFS中,有两种移动文件。我为这两个都创建了一个示例:
本地工作区(窗口浏览器)直接移动/拖动文件
在我的工作区磁盘中,将 2.PNG 移至 Main-branch
folder
然后我们可以检查TFS在VS中检测到的内容。加一个(在新的
中place),其中一个在Promote Candidate Changes中带有delete(在旧位置)。
您需要同时检查添加和删除(首先升级)。最后
您将获得所需的服务器和本地服务器。
直接在解决方案资源管理器中移动文件
在解决方案资源管理器中,我将把 1.PNG 移至* Main
右键单击文件夹*,然后选择移动。
您将直接获得具有重命名状态和
的待处理更改没有任何促进候选人更改。
然后我们可以检查本地工作区,您将看到1.PNG是
在工作区文件夹中自动删除,即使您尚未签入更改。最后检查待处理
变化,一切都很好而且干净。
返回您的错误: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中的重复文件。
最好不要经常在TFS服务器文件夹中移动文件,这也会弄乱历史记录信息。