visual-studio-2008 - 将最近的主干更改合并到 Visual Studio 2008 TFS 中不久前的主干分支

标签 visual-studio-2008 version-control tfs

我一直在尝试将对主干的更改与分支合并。

大约一个月前,主干 (5.0) 被分支出来(到 6.0)。从那时起,在 6.0 分支上进行了开发,但也对主干进行了热修复。我现在想更新 6.0.x 分支,其中包含自一个月前 6.0 分支从 5.0 主干上形成以来对主干所做的所有更改。

有没有办法在不检查主干 (5.0.x) 和分支 (6.0.x) 并使用第 3 方工具来协调差异的情况下执行此操作?

最佳答案

您可以使用源代码管理资源管理器轻松完成此操作。这在 http://msdn.microsoft.com/en-us/library/ms181282(v=VS.90).aspx 中有描述。 ,向下滚动到合并版本控制项部分。

  1. In Source Control Explorer, right-click the 5.0 Trunk folder, and select Merge. In the Source Control Merge Wizard, in the Source Branch text box, the path and name for the 5.0 Trunk folder appears.

  2. In the Target Branch drop-down list, select the 6.0 Branch folder.

  3. In Select the source branch changes you want to merge, select All changes up to a specific version, and click Next.

  4. In the Select the version of the source items step, in the Version Type drop-down list, select Latest Version, and click Next.

  5. In the Perform the merge operation step, click Finish.

Since there are differences between the source and target branches, the Resolve Conflicts dialog box appears. Follow the steps in the next procedure to resolve the conflicts. If there are no conflicts, the Resolve Version Conflict dialog box will not appear.

关于visual-studio-2008 - 将最近的主干更改合并到 Visual Studio 2008 TFS 中不久前的主干分支,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8055644/

相关文章:

c# - VS2008 - 用推断类型替换 var

c# - 你应该在哪里存储 3rd 方程序集?

git - TFS 到 GitHub 同步,反之亦然

git - 默认 pull 请求到父分支而不是 Visual Studio Team Services 中的主分支?

c++ - 如何从命令行使用 MSBuild 构建所有内容?

c# - 导出Excel错误: File you are trying to open FileName is in different format than specified extension

visual-studio - 当我不选择文本时 Visual Studio 突出显示

version-control - "Get Latest"仅在文件夹上,不递归

git - 如何为特定提交获取 "git log"补丁

c# - 如何找出合并变更集的源分支?