简体   繁体   English

使用TortoiseSVN将新文件夹从Trunk合并到现有分支中

[英]Merge New Folders from Trunk into an existing Branch using TortoiseSVN

What are the steps to merge/add a new folder to a branch from the trunk? 从主干将新文件夹合并/添加到分支的步骤是什么? For example, if I have the following branch structure: 例如,如果我具有以下分支结构:

branches\\new_branch\\folder_A branches\\new_branch\\folder_B branches\\new_branch\\folder_C branches\\new_branch\\folder_A branches\\new_branch\\folder_B branches\\new_branch\\folder_A branches\\new_branch\\folder_B branches\\new_branch\\folder_C

And wish to add a few folders that had not been merged/added to the branch folder but do exist in the trunk, how do I do that with TortoiseSVN? 并希望将一些尚未合并/添加到分支文件夹但确实存在于主干中的文件夹添加到其中,如何使用TortoiseSVN做到这一点? eg 例如

trunk\\folder_D

And end up adding this folder to new_branch : 最后将此文件夹添加到new_branch

branches\\new_branch\\folder_D

I only want to add this specific folder as opposed to bunch of other new ones. 我只想添加这个特定的文件夹,而不是一堆其他的新文件夹。

This may not be answer to your question, but this looks like XYProblem . 这可能不是您的问题的答案,但这看起来像XYProblem What do you really want to do? 你到底想干什么 I'm asking, because I'm working for years with svn and I never have to merge only single folder from trunk to branch. 我问,因为我在svn上工作了多年,所以我从不必将单个文件夹从主干合并到分支。

Of course if you really want to do this, you should read an answer to this question: How are the sub folder's mergeinfo used when merging at top folder level? 当然,如果您确实要执行此操作,则应阅读以下问题的答案: 在顶级文件夹级别合并时,如何使用子文件夹的mergeinfo? Remember that this is not much better than just copy-paste your folder with mergeinfo in subdirectory that you may never use. 请记住,这并不仅仅只是将文件夹中的mergeinfo复制粘贴到您可能永远不会使用的子目录中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM