Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
H
hs-git-flow-case
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
何虹
hs-git-flow-case
Commits
08242f9c
Commit
08242f9c
authored
Jun 05, 2022
by
胡伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update 胡伟.md
parent
a2fdce99
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
胡伟.md
git-flow-case-answer/胡伟.md
+6
-5
No files found.
git-flow-case-answer/胡伟.md
View file @
08242f9c
...
...
@@ -57,11 +57,12 @@
## case7: 环球项目,有一特殊需求新功能D需要开发,开发完成后测试并部署到项目中去,该如何操作?
-
由于不是最新的发布版存在bug,则需要把环球项目对应的release tag新建长期支持分支,假定我们继续使用小版本号发布新版本3.0.2.1,此时在huanqiu的分支上存在3.0.2.1的tag
-
如果仅该项目使用,则应该使用项目编号:huanqiu作为分支名
-
git flow support start huanqiu 3.0.2
-
git flow feature start D support/huanqiu
-
git flow feature finish D
-
git flow release start 3.0.2.1 support/huanqiu
-
git flow release finish 3.0.2.1
-
git flow support start huanqiu 3.0.2 #新建长期支持版本huanqiu,基于tag:3.0.2
-
git flow feature start D support/huanqiu #基于长期支持版本support/huanqiu新建一个feature分支D(注意,默认feature分支是基于dev的,所以这里必须手工指定)
-
git flow feature finish D #完成D需求的开发,合并到support/huanqiu版本
# 以下命令方式并不强制执行,因为长期支持版本一般改动较小,如果长期支持版本改动量大,应该另起仓库继续开发,继续使用标准git flow
-
git flow release start 3.0.2.1 support/huanqiu #基于长期支持版本新建release分支3.0.2.1
-
git flow release finish 3.0.2.1 #完成release分支3.0.2.1,此时会有tag,并且会合并到support/huanqiu分支
-
扩展:如果是在该大版本上继续往下支持新功能,则版本号应该持续往下走,假定我们最新版本是3.10版本,环球是3.2版,并且后续功能不止针对环球,而是正在3.2版本,则我们分支的长期支持版本应该就叫3.2
-
git flow support start 3.2 3.2 #表示从3.2的tag处新建分支新建长期支持版本3.2 ,前面的3.2为长期支持版本的名字,后面的3.2为base tag
-
git flow feature start D support/3.2
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment