version-control - 在 TFS 源代码管理中移动多个文件

标签 version-control tfs

我正在使用 Team Foundation Server 2008 (SP 1),我需要将多个文件从一个文件夹移动到另一个文件夹(以保留文件历史记录)。除了 Team Explorer(带有 SP 1)之外,我还安装了最新的 TFS Power Tools(2008 年 10 月)(用于 Windows Shell 集成)。

现在,问题是我似乎无法通过 shell 或源代码管理资源管理器窗口选择和移动多个文件。我可以移动单个文件(通过右键单击 +“移动”),也可以移动整个文件夹(相同的操作),但是当我选择多个文件(在一个文件夹中)时,“移动”上下文项会变灰/禁用。

有谁知道这是否可能......如果不可能......为什么不!?

有人可以建议一个不太复杂的解决方法吗?

请在这里投票: https://connect.microsoft.com/VisualStudio/feedback/details/715041/support-moving-multiple-files-in-tfs-source-control-explorer 这里 http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/2271540-allow-to-move-more-than-one-file-at-once-in-tfs-so

enter image description here

enter image description here

最佳答案

使用 Visual Studio 命令行中的 tf.exe 工具 - 它可以处理通配符:

tf.exe move <olditem> <newitem>

示例:

tf.exe move "$/My Project/V*" "$/My Project/Archive"

[编辑] 正如评论中所述:move 是 rename 的别名。这两个命令都会移动历史记录。

关于version-control - 在 TFS 源代码管理中移动多个文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/770726/

相关文章:

c# - 如何以编程方式通过代理连接到 TFS?

visual-studio - 版本控制 "in the clouds"

visual-studio - 如何将现有解决方案添加到 Team Foundation Server?

git - 如何使用 GIT 集成在 Intellij 14 中设置 user.email 和 user.name?

collections - TFS 2012(云): Add new Collection

tfs - 按工作区和最新版本从版本分支之间有什么区别

version-control - 我可以在 perforce 中安全地编辑重命名的文件吗

git - 如何在 meld、kdiff3 等差异查看器中查看 `git show` 的输出

tfs - TF246017 : team foundation server could not connect to the database

svn - 我可以在不使用本地工作副本的情况下将新文件夹添加到 TFS 存储库服务器端吗?