Gitlab learning some git specifications commonly used by enterprises
青灯夜游
Release: 2023-04-01 08:30:02
forward
1670 people have browsed it
As the saying goes, there is no rule without rules, and our git also needs to be standardized.
The following introduces some norms commonly used by enterprises.
Branch management specifications
Branch naming cannot be strange, there must be a unified naming method. There are mainly the following types:
Branch management
Naming convention
Explanation
master master branch
master
The stable version branch, after the return is completed, Merged from the release branch by the project technical leader, and tagged
test test branch
test/yyyyMMdd_ Function name example: test/20220426_blog
Testers use branches, merged from the feature branch during testing
feature function development branch
feature/yyyyMMdd_ Function name_Responsible person example: feature/20220426_blog_xiumubai
New feature development uses branches, based on master
fix bug repair branch
fix/yyyyMMdd_ Function name_Responsible person example: fix/20220426_blog_xiumubai
Emergency online bug fixes use branches, based on master to establish
release online branch
release/version number example: release/0.1.0
The branch used for online is established based on master. The feature branch to be merged must be code reviewed before it can be merged into the online version.
Number management specifications
When we go online, we need to tag the version number. The following is the version number specification:
The above is the detailed content of Gitlab learning some git specifications commonly used by enterprises. For more information, please follow other related articles on the PHP Chinese website!
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn