[SCM] source code management-Why branch and label

Source: Internet
Author: User

Yibranch

Branch is a branch. Creating branch in the source code management tool is actually a new copy of the source code. After a period of development, this new copy can be merged to the original source code when appropriate. Branch is mainly used to support parallel development.

 

2 branch usage

1) after a project is released, we need to start development of a new version, but still need to provide a fix for the released product. In this case, we need to create a release branch, for example, if branch is set to release2012 after the product is released, it is used to continue development of Hotfix, SP1, and SP2. If you need to provide a fix for the Beta release, you need to create a separate branch.


 

2) when the project is complex, it can be divided into multiple features to create its own branch for each feature, or some research features require their own independent branch (may not be merged into the main source code ).

 

3) The preceding 1 and 2 are used in a general project ).

 

Three labels

Label is used to identify a specific version.Source code. For example, you can create a label to identify the source of Beta, RTM, SP1, and SP2.Code.


~~~~~~

 

Complete!

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.