• 首页 首页 icon
  • 工具库 工具库 icon
    • IP查询 IP查询 icon
  • 内容库 内容库 icon
    • 快讯库 快讯库 icon
    • 精品库 精品库 icon
    • 问答库 问答库 icon
  • 更多 更多 icon
    • 服务条款 服务条款 icon

仅合并两个变更集 (TFS)

用户头像
it1352
帮助1

问题说明

您看到 162489 和 162990,我该如何合并它们?

You see 162489 and 162990, How can I merge them ?

正确答案

#1

我猜您只想将这两个特定变更集合并到另一个分支中.

I'm guessing that you want to merge only those two specific changesets into another branch.

您不能一次性合并多个变更集,除非变更集是按顺序排列的.

You cannot merge multiple changesets in one go, unless the changesets are in sequence.

使用 tf 命令行工具,您可以通过用波浪号分隔版本来指定版本范围.

Using the tf command line tool you specify a range of versions by separating the version with a tilde character.

tf merge /recursive /version:C162489~C162990 "$/SourceBranch" "$/TargetBranch"

在这种情况下,还将包括更改 162987 和 162967.

In this case the changes 162987 and 162967 will also be included.

如果您在 Visual Studio 中使用 UI,则合并对话框将阻止您选择多个单独的变更集,除非它们按顺序排列.

If you are using the UI in Visual Studio then the merge dialog will prevent you to select multiple individual changesets unless they are in sequence.

要将两个单独的变更集合并到另一个分支中,您必须分两步完成:
合并 162489 和 162990(从合并最旧的变更集开始,以防两个变更集都包含对相同文件的更改).

To merge two separate changesets into another branch you will have to do it in two steps:
merge 162489 and then 162990 (start with merging the oldest changeset in case both changesets contain changes to the same files).

然后目标分支的工作区将包含两个变更集的更改,现在您可以将合并作为目标分支中的一个变更集检入.

Then your workspace for the target branch will contain the changes for both changesets and now you can check-in the merges as one changeset in the target branch.

这篇好文章是转载于:学新通技术网

  • 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
  • 本站站名: 学新通技术网
  • 本文地址: /reply/detail/tanhcgcjhf
系列文章
更多 icon
同类精品
更多 icon
继续加载