Merging of SVN Branch trunk

Source: Internet
Author: User
Tags commit svn tortoisesvn
First, the trunk merge to the branch

First, in the local trunk of the first update, there is conflict resolution conflict, ensure that the trunk and repository are fully synchronized, and then right-click on the/branches/myproject, select "TortoiseSVN", then "Merge ", select the first item" merge a range of revision "in the pop-up window, and this type of merge is for merging multiple revision that are committed on a branch or main line onto another branch.

After clicking Next, the following window appears:

Because it is to be merged from the trunk to branch, it is natural that the "URL to merge from" should be the path of the trunk, "Revision range to merge" very well understood, Is that you want to merge which revision of the trunk into the branch, which can be a series of revision, such as 4-7,15-head, or a separate revision number (which can be selected after clicking the Show Log window). Of course we can also choose all revisions to represent all revisions. After clicking Next, the following image appears:

Just leave the default settings here. Before you click the merge button, you can test the merge to see if it's successful or not, and the details of the merge. When you click the Merge button, the trunk changes are synced to branch.

At this point, Branch has been fully synchronized with the trunk, merging occurs in the local working copy, as long as you do not commit will not affect the repository. So we and the merge operation, after dealing with the conflict (if there is a conflict), commit the code to repository. Ii. Branch merging to Trunk

Right-click on the/trunk/myproject (note the right-click on the main Line's directory), then select "TortoiseSVN", then "Merge ...".
Follow up and branch merge to trunk, you can actually understand the trunk as a branch "main branch".
because we merge branches into branches is usually after the branch development is finished, so in general choose all revisions, of course, if you want to merge only part of the trunk, you can choose specific revisions specify the version number merge.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.