Scenario: Linux code on-Library conflict handling

Source: Internet
Author: User

The processing method is as follows:

1) Perform abandon operation on the Gerrit;

2) Make the conflicting positions, back up the modified folders (only back up the changes in the conflicting git silos);

3) execution

git reset--hard head^;

4) Rm-rf modified file header (all changes to the conflict compartment are deleted);

5) to the conflicting Git bin, execute

Git checkout.

Overwrite changes;

6) execution

Repo Sync

If a prompt appears,

XXX Branch published but not merged

The CD to the warehouse, execute the

Git pull

Keep local low and consistent with the library;

7) Re-modify the merge and then execute

Git commit

Repo upload

Scenario: Linux code on-Library conflict handling

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.