init
This commit is contained in:
70
gitflow.md
Normal file
70
gitflow.md
Normal file
@@ -0,0 +1,70 @@
|
||||
## 橘子支付 git flow
|
||||
|
||||
### 主要分支 (不可刪除)
|
||||
|
||||
| 分支名稱 | 環境 | 建置路徑 |
|
||||
|--------------|-------|--------------------|
|
||||
| Develop(Dev) | SIT | SIT |
|
||||
| Master | Stage | Stage |
|
||||
| PRD | PRD | Stage -> PRD -> DR |
|
||||
|
||||
|
||||
### 支援分支 (可刪除)
|
||||
- Dev_Feature (branch from Develop)
|
||||
用途:功能開發、SIT bug fix
|
||||
合併:本機測試完畢,push 至 tfs,進行 Pull Request 完成後,該 Dev_Feature 會合進 develop,再進行建置 SIT 環境。
|
||||
|
||||
- Master_HotFix (branch from Master)
|
||||
用途:Master bug fix、功能調整、功能追加
|
||||
合併:本機測試完畢,push 至 tfs,進行 Pull Request 完成後,建置 Stage 環境,測試 OK 後,Merge 該 Master_HotFix 至 develop
|
||||
|
||||
- PRD_HotFix (branch from PRD)
|
||||
用途:PRD bug fix、功能調整
|
||||
合併:本機測試完異,push 至 tfs,進行 Pull Request 完成後,建置 PRD 環境,測試 OK 後,Merge 該 PRD_HotFix 至 master、develop
|
||||
|
||||
### 上版流程
|
||||
正常開發,兩星期上版一次,所以整個流程是以兩個星期為週期在重複。
|
||||
|
||||
<table style="background-color: #1E1E1E; width: 100%">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="width: 25%; color: white;" colspan=3></td>
|
||||
<td style="width: 25%; color: white; vertical-align: bottom; text-align: center;" colspan=3>第一週<br>星期四<br>develop merge to Master</td>
|
||||
<td style="width: 25%; color: white; vertical-align: bottom; text-align: center;" colspan=3>第二週<br>星期三<br>Master merge to PRD</td>
|
||||
<td style="width: 25%; color: white;" colspan=3></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=12>
|
||||
<img src="images/git_schedule_arrow.png" style="width:100%; height: 100%">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width: 33%; color: white; text-align: center;" colspan=4>develop 開發</td>
|
||||
<td style="width: 33%; color: white; text-align: center;" colspan=4>Stage 測試</td>
|
||||
<td style="width: 33%; color: white; text-align: center" colspan=4>PRD上線</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width: 33%; color: white; text-align: left; vertical-align: top;" colspan=4>1. 功能開發使用Dev_Feature分支<br>
|
||||
2. 開發完後提取要求,合併至develop 分支</td>
|
||||
<td style="width: 33%; color: white; text-align: left; vertical-align: top;" colspan=4>1. develop 分支合併至 Master<br>
|
||||
2. 如果有需要修改,使用Master_HotFix</td>
|
||||
<td style="width: 33%; color: white; text-align: left; vertical-align: top;" colspan=4>1. 上線至PRD環境<br>
|
||||
2. 如需要修改,使用PRD_HotFix分支</td>
|
||||
</tr>
|
||||
</tobdy>
|
||||
</table>
|
||||
|
||||
#### Ex:
|
||||
2020-04-27 Stage _ 2020-05-06 PRD:
|
||||
- 2020-04-27 之前
|
||||
開發全部用 Dev_Feature 分支,開分支使用 tfs 取得工作單號、標題,開發完後,申請合併(提取要求)至 develop 分支。
|
||||
- 2020-04-27 當天
|
||||
把 develop 分支合併到 Master 分支,並建置、部署至 Stage 環境
|
||||
- 2020-04-27~2020-05-06
|
||||
在 Stage 環境中測試,如果有問題,使用 Master_HotFix 分支修改
|
||||
- 2020-05-06 當天
|
||||
Master 分支合併至 PRD 分支,並建置、部署至 PRD 環境
|
||||
- 2020-05-06 之後
|
||||
如果在 PRD 環境有什麼問題,需要緊急修正的話,使用 PRD_HotFix 分支修改,做緊急上版。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user