Conflict between merge and rebase

Source: Internet
Author: User

A conflict occurs when two users modify the same region of the same file.

Switch 1、to the sub-branch chengdr, and enter the text "Hello word!" In newtxt1.txt !!!" -> Add to index-> commit-> push

2. Switch to the sub-branch chengdr2. In newtxt1.txt, enter the text "Hello word"-> Add to index-> commit

3. Perform the fetch operation.

4. Execute the merge operation of the chengdr2 Branch and the chengdr branch on the server, and the following error occurs:

The content in the file is as follows:

5、right-click newtxt1.txt-> Team-> merge Tool

6. After OK, the latest local file version and the server file content will be compared.

7. After negotiation, if the text here is considered as "Hello wordyellow, right-click newtxt1.txt-> Add to index-> commit, the conflict is resolved successfully.

8. Then push the chengdr branch to the server.

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.