## 橘子支付 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 ### 上版流程 正常開發,兩星期上版一次,所以整個流程是以兩個星期為週期在重複。
| 第一週 星期四 develop merge to Master |
第二週 星期三 Master merge to PRD |
||||||||||
|
|||||||||||
| develop 開發 | Stage 測試 | PRD上線 | |||||||||
| 1. 功能開發使用Dev_Feature分支 2. 開發完後提取要求,合併至develop 分支 |
1. develop 分支合併至 Master 2. 如果有需要修改,使用Master_HotFix |
1. 上線至PRD環境 2. 如需要修改,使用PRD_HotFix分支 |
|||||||||