10 of the egit user manual for git plug-ins on eeclipse _ simple parsing of rebase and merge

Source: Internet
Author: User

In this summary, why is it a simple analysis? Because rebase and merge have a heated discussion on the selection issue, I have no final conclusion, and git is also in the research and development stage, many theories are not completely mature yet.

If a multi-person development team submits updates frequently, the use of merge will make the historical line chart very complex, and merge will add a new record point at a time. If rebase is used, it is completely linear development.

The two results of merge and rebase are shown. Obviously, you don't want the chaotic results of merge. Can you tell me that the line in the merge diagram is a master branch?

Therefore, the following suggestions are provided. If the same file is repeatedly modified or submitted for a large number of times and many conflict statements are expected, you can use merge to merge the statements. You only need to resolve one conflict (however, should a new branch be created in advance for a wide range of thematic modifications ?); If the modification range is small and less conflict is expected, rebase is recommended.

In egit, the default pull operation is fetch + merge. If rebase is used, separate operations can be performed. Execute fetch to update remote tracking, and then execute rebase to merge (the rebase operation will be introduced in the next section ). Or modify the default pull Operation and configure it in the. Git/config file:

The preceding configuration is only valid for the mirror branch, and can be globally configured at $ home /. in gitconfig, if the Home variable is not configured in Windows, it is in the $ Documents and Settings/user directory by default:

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.