Xcode compares the two branches with the same file, while xcode compares the two branches.

Source: Internet
Author: User

Xcode compares the two branches with the same file, while xcode compares the two branches.

For the two branches of the same project,Because both branches may have made some modifications.So the History... function in Source Control cannot be viewed, for example:


At this time, we need to use another function of xcode,


Procedure:

1. click the button marked as 1 in the red box in the figure. Two windows 3 and 4 (window 3 is the content of the current Branch file) are displayed in the middle of the page ).

2. Select a file with the same name from the xcode window of another branch, and then use "command +" to switch to the current xcode window.

3. Drag the file to the position marked in the red box in the image. Window 4 is the content of the file dragged over.

4. xcode will automatically mark different parts of the two files, so that you can easily view the differences between different branches and the same file.


Note: The application scenario is where both the two branches and the same file are modified.

Related Article

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.