Merge SVN code: Merge the branch code to the trunk

Source: Internet
Author: User

1. Now the latest SVN code is in the workspace, and select the project -- Right-click -- team -- merge to enter the next page, as shown in figure

2. Click Next to enter the path of the branch to be synchronized to the local (that is, the trunk. You can select a folder for merging. The path corresponding to the branch is the path corresponding to the folder under the branch.

3. By default, next is used to process conflicting files later. Click Finish.

4. solution to the conflict file:

1. when there are few changes to the Branch file, set the locally merged conflict file to resolved (method: Right-click the selected file-team-mark as resolved ), overwrite the latest code of the trunk (method: Right-click the selected file-team-replacewith-the latest content in the repository), and copy the branch changes to the local file.

2. when many Branch files are changed and there are few changes to the master file, you can set the local conflict file to fixed, and then copy the changes to the master file to the Branch file, copy the Branch file and overwrite the main file.

3. there are many changes to the Branch file and there are too many changes to the trunk file. This requires flexible processing: First, check that the changes to the file are clear, it is the best way to copy the changed code to another file.

Note: When resolving conflicting files, use the tool software for comparison files: Beyond compare 3

Merge SVN code: Merge the branch code to the trunk

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.