Files
GamaPay.Newbie/gitflow.md
2020-05-20 17:14:17 +08:00

48 lines
1.9 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 橘子支付 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
### 上版流程
正常開發,兩星期上版一次,所以整個流程是以兩個星期為週期在重複。
![上版時程](images/git_schedule_all.png)
連續多個版本的流程就像以下圖示
![多版本上版時程](images/git_schedule_multi.png)
#### 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 分支修改,做緊急上版。