init
This commit is contained in:
22
develop_normal.md
Normal file
22
develop_normal.md
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
## 一般開發上版流程
|
||||||
|
|
||||||
|
1. 到 tfs 依工作需求建立工作單號
|
||||||
|

|
||||||
|
|
||||||
|
2. 填寫工作單內容
|
||||||
|
相關內容視情況填寫
|
||||||
|

|
||||||
|
|
||||||
|
3. 將最新的 develop 分支 pull 到本地
|
||||||
|
|
||||||
|
4. 在最新的 develop 分支新建工作單的分支分支名稱為 - Dev_Feature/#單號_工作單標題,ex: Dev_Feature/#4257_P40異常排除。
|
||||||
|
|
||||||
|
5. 開發完後,先將最新的 develop 分支 pull 下來。(應該可以不用)
|
||||||
|
|
||||||
|
6. 所以檔案開發完後,commit 後 push 上 tfs。
|
||||||
|
|
||||||
|
7. 到 tfs 申請合版(merge 至 develop)。
|
||||||
|

|
||||||
|
|
||||||
|
8. 填寫 API 上版項目
|
||||||
|

|
||||||
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 分支修改,做緊急上版。
|
||||||
|
|
||||||
|
|
||||||
BIN
images/document_api.png
Normal file
BIN
images/document_api.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 72 KiB |
BIN
images/git_schedule_arrow.png
Normal file
BIN
images/git_schedule_arrow.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 589 B |
BIN
images/tfs_merge_request.png
Normal file
BIN
images/tfs_merge_request.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
BIN
images/tfs_newjob.png
Normal file
BIN
images/tfs_newjob.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
BIN
images/tfs_newjob2.png
Normal file
BIN
images/tfs_newjob2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
Reference in New Issue
Block a user